@cisco-msx/sites
v1.2.4
Published
Shared Angular components for managing MSX sites
Downloads
1
Keywords
Readme
@cisco-msx/sites
Shared Angular components for managing MSX sites.
Usage
For service packs, ensure you have installed and are using
@cisco-msx/webpack-externals
in your Webpack configuration, and add
@cisco-msx/sites
to your package.json's peerDependencies
and
devDependencies
. This ensures that your package indicates that it depends on
@cisco-msx/sites
to run, but will install the package locally during
development for use in your unit tests.
{
"name": "my-service-pack",
"peerDependencies": {
"@cisco-msx/sites": "^1.0.0"
},
"devDependencies": {
"@cisco-msx/sites": "^1.0.0"
}
}
Afterwards, it can be used by importing the
SitesModule
from @cisco-msx/sites
:
import { NgModule } from '@angular/core';
import { SitesModule } from '@cisco-msx/sites';
@NgModule({
imports: [
SitesModule
]
})
export class MyModule {}
This package also exposes a downgraded AngularJS module, for use in AngularJS
service packs. Simply import the @cisco-msx/sites
file, and add its AngularJS
module name to your module's dependencies.
import angular from 'angular';
import '@cisco-msx/sites';
export default angular
.module('spmodule, [
'msx.sites'
]);