bcn-barra
v0.0.8
Published
Run `ng build bcn-barra` to build the project. The build artifacts will be stored in the `dist/` directory.
Downloads
8
Keywords
Readme
Build
Run ng build bcn-barra to build the project. The build artifacts will be stored in the dist/ directory.
Publishing
After building your library with ng build bcn-barra, go to the dist folder cd dist/bcn-barra and run npm publish.
Compatible Angular Versions
v19
Implementation
1º Install package in project, run command npm i bcn-barra
2º BcnBarraComponent is standalone, import it directly into the component you want to use
3º Call de library in html file
<lib-bcn-barra [bannerHtmlUrl]="..." [linksStyle]="[...]" (loadedBar)="onLoadedBar()">
Params
- @Input() bannerHtmlUrl: string | undefined; // Url with the html to load
- @Input() linksStyle: string[] | undefined; // Array with the list of style urls
- @Output() loadedBar = new EventEmitter(); // Emits event when the bar has been loaded
