dp-world-page-titles
v0.0.2
Published
Part of our project template
Keywords
Readme
Example Usage
<dp-world-page-titles [urlMap]="pageTitlesConfig"></dp-world-page-titles>
pageTitlesConfig = {
"": {
title: 'Home',
subTitle: 'Welcome to the Shared Components Project!',
},
"content": {
title: 'Content',
subTitle: 'This is where content goes!',
secondLink: 'Applications',
firstLink: 'Home',
},
};
Code scaffolding
Run ng generate component component-name --project dp-world-page-titles to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project dp-world-page-titles.
Note: Don't forget to add
--project dp-world-page-titlesor else it will be added to the default project in yourangular.jsonfile.
Build
Run ng build dp-world-page-titles to build the project. The build artifacts will be stored in the dist/ directory.
Publishing
After building your library with ng build dp-world-page-titles, go to the dist folder cd dist/dp-world-page-titles and run npm publish.
Running unit tests
Run ng test dp-world-page-titles to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
