ng-base-model
v0.3.0
Published
[![npm version](https://img.shields.io/npm/v/angular-basemodel.svg?maxAge=3600&style=flat)](https://www.npmjs.com/package/angular-notifier) [![license](https://img.shields.io/npm/l/angular-basemodel.svg?maxAge=3600&style=flat)](https://github.com/essedi/A
Downloads
1
Readme
Angular-BaseModel
Installation
To install this library, run:
$ npm install angular-basemodel --save
Consuming your library
Once you have published your library to npm, you can import your library in any Angular application by running:
$ npm install angular-basemodel
and then from your Angular AppModule
:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
// Import your library
import { BaseModel } from 'angular-basemodel';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
BaseModel
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Once your library is imported, you can use:
import {Base_Model} from 'angular-basemodel'
export class NewClass extends Base_Model
{
}
Development
To generate all *.js
, *.d.ts
and *.metadata.json
files:
$ npm run build
To lint all *.ts
files:
$ npm run lint
License
MIT © Essedi