From the course: Angular: Workflows

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Using published library

Using published library - Angular Tutorial

From the course: Angular: Workflows

Start my 1-month free trial

Using published library

- [Narrator] Now that our library's on npm, let's pull it in to our project. Open the sample application provided in this video. Let's install the library we just published. Npm install, save as a dependency, ng-components-vmejia. This will go ahead and pull our newly published library from npm. Once that is complete let's head over to our application module and we will import the module from our library. Import from ng-components-vmejia. And import to corresponding module and we will import that into our angular module. We can then head over to the hacker component and use our new status component. It is the vm-hacker-status, it takes in as input the hacker.status. Let's go ahead and run our application, npm start. And then we see our component displayed. However, we see that the danger pulse is not exactly displaying correct in our app. This can be easily fixed. Let's head back and add some styles. Because we are using css encapsulation we will need to use a specific indicator and…

Contents