Installing
To install this component to an external project, follow the procedure:
npm install ng-mat-forms --save
Add NgMatFormsModule import to your @NgModule like example below
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MyTestApp } from './my-test-app';
import { NgMatFormsModule } from 'ng-mat-forms';
@NgModule({
imports: [ BrowserModule, BrowserAnimationsModule, NgMatFormsModule ],
declarations: [ MyTestApp ],
bootstrap: [ MyTestApp ]
})
export class MyTestAppModule {}
If you are using
systemjs
System.config
:
(function (global) {
System.config({
paths: {
'npm:': 'node_modules/'
},
map: {
// Other components are here...
'ng-mat-forms': 'npm:ng-mat-forms/bundles/ng-mat-forms.umd.min.js'
},
packages: {
}
});
})(this);
Last updated
Was this helpful?