Skip to content

Commit

Permalink
Slight tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
seanlandsman committed Jul 17, 2018
1 parent 0ab5202 commit 148a01f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 7 additions & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ import {NgModule} from '@angular/core';
import {ReactiveFormsModule} from '@angular/forms';
/* Material Modules*/
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {MatSnackBarModule, MatButtonModule, MatFormFieldModule, MatInputModule, MatSelectModule} from "@angular/material";
import {
MatButtonModule,
MatFormFieldModule,
MatInputModule,
MatSelectModule,
MatSnackBarModule
} from "@angular/material";
/* Flex */
import {FlexLayoutModule} from "@angular/flex-layout";
/* ag-Grid Module*/
Expand Down
2 changes: 1 addition & 1 deletion src/app/grid/form-cell/form-cell.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Component} from '@angular/core';
import {FormArray, FormGroup} from "@angular/forms";
import {FormArray} from "@angular/forms";

@Component({
selector: 'app-form-cell',
Expand Down
3 changes: 1 addition & 2 deletions src/app/grid/grid.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ export class GridComponent {
columns.filter((column: Column) => column.getColDef().field !== 'orderNumber')
.forEach((column: Column) => {
const key = this.createKey(this.columnApi, column); // the cells will use this same createKey method
formArray.setControl(<any>key, new FormControl())
console.log();
formArray.setControl(<any>key, new FormControl());
});
stockGroup.addControl(<any>rowNode.id, formArray);
});
Expand Down

0 comments on commit 148a01f

Please sign in to comment.