Shobhit Verma
Shobhit Verma

Reputation: 834

How to use a 3rd party node Package in angular?

I am new to angular. I wanted to fetch a list countries in my service for which I found a package for here.

But I am unable to import, I ran the following command:

npm i country-state-city

Upvotes: 0

Views: 29

Answers (1)

Maxime
Maxime

Reputation: 2234

You can import and use the library like that:

import * as countryStateCity from 'country-state-city';

Upvotes: 1

Related Questions