Fixed mixed naming conventions

This commit is contained in:
Zakary Timson 2018-06-07 12:28:29 -04:00
parent 2d1885ccbf
commit 2f34aedce5
2 changed files with 5 additions and 4 deletions

View File

@ -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,

View File

@ -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);
}); });
} }
} }