0.1.0 • Published 3 years ago

@wolf_and_associates/article v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Article

Render Articles for end-users. This library was generated with Angular CLI version 11.2.14.

Code scaffolding

Run ng generate component component-name --project Article to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project Article.

Note: Don't forget to add --project Article or else it will be added to the default project in your angular.json file.

Use in production

Install the library from NPM

npm i --save @wolf_and_associates/article

Next, in your app.module.ts file, import the library at the top of the file:

import { ArticleModule } from '@wolf_and_associates/article';

Then in your template you can use the wolfltc-article directive

<wolfltc-article [article]="article"></wolfltc-article>

This directive requires you provide a valid Article object. To do that, import the Article class in your template:

import { Article } from '@wolf_and_associates/article';

Then you create a new object:

this.article = new Article(article);

Use in Development

Instead of installing from NPM you will need to include a locally installed folder path on your machine. Assuming this repo is in the same directory as the projects you are currently running you would edit your package.json file to include this library:

    "@wolf_and_associates/article": "file:../wolfltc-ngx/dist/article",

Once added to your target repositories package.json you should spin up the library

ng build --project Article --watch

Now that the library is being served, you can use npm i on your target project followed by an ng serve or whatever command is now serving that repo.

0.1.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago