npm.io
7.2.3 • Published 9 years ago

ng-tools-engine

Licence
Version
7.2.3
Deps
0
Vulns
0
Weekly
0

M'O Tools Engine

Angular (4+) tree-shakeable, and AOT compatible shared library.

How To Use

  1. Install the npm package
$ npm i mo-tools-engine --save
  1. Appropriately require the package in the module loader your application uses (see below for instructions for SystemJS and Webpack).
  2. To declare components or provide services from this library, import the module containing them from this library into the relevant ngModule in your application.
import { ImageUploadModule } from 'mo-tools-engine';

@NgModule({
  imports: [ ImageUploadModule ]
})
export class SharedModule { }
  1. To use standalone classes or interfaces from this library (that don't need to be provided or declared) import them directly into the relevant component or service in your application.
import { ResourceApiInterface } from 'mo-tools-engine';

@Injectable()
export class ModuleApiService implements ResourceApiInterface { }

Integration with SystemJS

  1. Install the npm package.
  2. Add ng-tools-engine to the map object in your systemjs config file.
map: {
  'mo-tools-engine': 'node_modules/mo-tools-engine/bundles/mo-tools-engine.umd.js'
}
Integration with Webpack

--- coming soon

License

MIT