This project was generated with Angular CLI version 12.1.2.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
This library was generated with Angular CLI version 12.1.0.
Demo: https://stackblitz.com/edit/foo-lib-demo
- Easy to integrate
- Supports every envionment
npm i foo-lib
- Add FooLibModule to App NgModule
import { Component } from '@angular/core';
import { FooLibService } from 'foo-lib';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
constructor(
private fooLibService: FooLibService
) { }
ngOnInit(): void {
this.fooLibService.test('Hello World!');
}
}
- Custom foo
- UX design update for foo
- Backward compatibility with angular previous versions
Check out article on Crash Course: Publish a Library on NPM
HelloTest
GitHub @AbhijeetGiram · LinkedIn @AbhijeetGiram · Medium @AbhijeetGiram