feat(config): add ngx formly

This commit is contained in:
Johannes Millan 2018-10-12 19:01:40 +02:00
parent 5538b31eca
commit 702828b9e4
3 changed files with 28 additions and 4 deletions

22
package-lock.json generated
View file

@ -430,9 +430,9 @@
}
},
"@angular/forms": {
"version": "6.1.9",
"resolved": "https://registry.npmjs.org/@angular/forms/-/forms-6.1.9.tgz",
"integrity": "sha512-gNwTCA0nzUR4LlXWPdfYBA+chq4X9mvOBo46+M44TevNwEsip6iSZKp7no9O5dquALOZ2HpFRuRkPoH4lXuVYA==",
"version": "6.1.10",
"resolved": "https://registry.npmjs.org/@angular/forms/-/forms-6.1.10.tgz",
"integrity": "sha512-zAPx2kMV1/FbP5DrY472Sd/ze1m+GS6T5ullZCtP392r62p2RkwzDCXieR51YiRJjZj3M6c3AcRND7PWBdXT7A==",
"requires": {
"tslib": "^1.9.0"
}
@ -724,6 +724,22 @@
}
}
},
"@ngx-formly/core": {
"version": "4.7.2",
"resolved": "https://registry.npmjs.org/@ngx-formly/core/-/core-4.7.2.tgz",
"integrity": "sha512-+QcGmmlWE7GHpNRIeZNkFLysKX2OZ/XBtrRcON8eWdane8Wl8Zn3f918U2c2jm6UhM6nGn8MF560D5dgLiCF9g==",
"requires": {
"tslib": "^1.7.1"
}
},
"@ngx-formly/material": {
"version": "4.7.2",
"resolved": "https://registry.npmjs.org/@ngx-formly/material/-/material-4.7.2.tgz",
"integrity": "sha512-B0KcVEFncwOoqZs/IZS0dkj5yO7Cb3ahv5rHlBZPapA7GmftfHnakZVhaD003MocGKiHJNUW1xGauhhgaGSD7A==",
"requires": {
"tslib": "^1.9.0"
}
},
"@schematics/angular": {
"version": "0.8.4",
"resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-0.8.4.tgz",

View file

@ -44,7 +44,7 @@
"@angular/common": "^6.1.7",
"@angular/compiler": "^6.1.7",
"@angular/core": "^6.1.7",
"@angular/forms": "^6.1.7",
"@angular/forms": "^6.1.10",
"@angular/http": "^6.1.7",
"@angular/material": "^6.4.7",
"@angular/platform-browser": "^6.1.7",
@ -56,6 +56,8 @@
"@ngrx/entity": "^6.1.0",
"@ngrx/store": "^6.1.0",
"@ngrx/store-devtools": "^6.1.0",
"@ngx-formly/core": "^4.7.2",
"@ngx-formly/material": "^4.7.2",
"core-js": "^2.5.4",
"ng2-dragula": "^2.1.0",
"ngx-markdown": "^6.2.1",

View file

@ -6,9 +6,15 @@ import { EffectsModule } from '@ngrx/effects';
import { ConfigEffects } from './store/config.effects';
import { ConfigSectionComponent } from './config-section/config-section.component';
import { ConfigFormComponent } from './config-form/config-form.component';
import { ReactiveFormsModule } from '@angular/forms';
import { FormlyModule } from '@ngx-formly/core';
import { FormlyMaterialModule } from '@ngx-formly/material';
@NgModule({
imports: [
ReactiveFormsModule,
FormlyModule.forChild(),
FormlyMaterialModule,
CommonModule,
StoreModule.forFeature('config', fromConfig.reducer),
EffectsModule.forFeature([ConfigEffects])