Fixed mixed naming conventions
This commit is contained in:
parent
2d1885ccbf
commit
2f34aedce5
@ -1,8 +1,9 @@
|
|||||||
import {NgModule} from '@angular/core';
|
import {NgModule} from '@angular/core';
|
||||||
import {NgDatatableComponent} from './ng-datatable.component';
|
|
||||||
import {FormsModule} from "@angular/forms";
|
import {FormsModule} from "@angular/forms";
|
||||||
import {BrowserModule} from "@angular/platform-browser";
|
import {BrowserModule} from "@angular/platform-browser";
|
||||||
|
|
||||||
|
import {NgDatatableComponent} from './ng-datatable.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
@ -28,7 +28,7 @@ class Person {
|
|||||||
styleUrls: ['./app.component.css']
|
styleUrls: ['./app.component.css']
|
||||||
})
|
})
|
||||||
export class AppComponent implements OnInit {
|
export class AppComponent implements OnInit {
|
||||||
@ViewChild('table') dataTable: NgDatatableComponent;
|
@ViewChild('table') datatable: NgDatatableComponent;
|
||||||
@ViewChild('age') ageTemplate;
|
@ViewChild('age') ageTemplate;
|
||||||
|
|
||||||
columns = [];
|
columns = [];
|
||||||
@ -57,8 +57,8 @@ export class AppComponent implements OnInit {
|
|||||||
];
|
];
|
||||||
|
|
||||||
this.search.subscribe(text => {
|
this.search.subscribe(text => {
|
||||||
this.dataTable.clearFilters(false);
|
this.datatable.clearFilters(false);
|
||||||
this.dataTable.addFilter(row => JSON.stringify(row).toLowerCase().indexOf(text.toLowerCase()) != -1);
|
this.datatable.addFilter(row => JSON.stringify(row).toLowerCase().indexOf(text.toLowerCase()) != -1);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user