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