"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts" between
material2-7.3.6.tar.gz and material2-7.3.7.tar.gz

About: material2 offers Material Design components for Angular.

__name@dasherize__.component.ts  (material2-7.3.6):__name@dasherize__.component.ts  (material2-7.3.7)
import { Component, OnInit, ViewChild<% if(!!viewEncapsulation) { %>, ViewEncaps ulation<% }%><% if(changeDetection !== 'Default') { %>, ChangeDetectionStrategy< % }%> } from '@angular/core'; import { AfterViewInit, Component, ViewChild<% if(!!viewEncapsulation) { %>, Vie wEncapsulation<% }%><% if(changeDetection !== 'Default') { %>, ChangeDetectionSt rategy<% }%> } from '@angular/core';
import { MatPaginator, MatSort } from '@angular/material'; import { MatPaginator, MatSort } from '@angular/material';
import { <%= classify(name) %>DataSource } from './<%= dasherize(name) %>-dataso urce'; import { <%= classify(name) %>DataSource } from './<%= dasherize(name) %>-dataso urce';
@Component({ @Component({
selector: '<%= selector %>',<% if(inlineTemplate) { %> selector: '<%= selector %>',<% if(inlineTemplate) { %>
template: ` template: `
<%= indentTextContent(resolvedFiles.template, 4) %> <%= indentTextContent(resolvedFiles.template, 4) %>
`,<% } else { %> `,<% } else { %>
templateUrl: './<%= dasherize(name) %>.component.html',<% } if(inlineStyle) { %> templateUrl: './<%= dasherize(name) %>.component.html',<% } if(inlineStyle) { %>
styles: [` styles: [`
<%= indentTextContent(resolvedFiles.stylesheet, 4) %> <%= indentTextContent(resolvedFiles.stylesheet, 4) %>
`]<% } else { %> `]<% } else { %>
styleUrls: ['./<%= dasherize(name) %>.component.<%= styleext %>']<% } %><% if( !!viewEncapsulation) { %>, styleUrls: ['./<%= dasherize(name) %>.component.<%= styleext %>']<% } %><% if( !!viewEncapsulation) { %>,
encapsulation: ViewEncapsulation.<%= viewEncapsulation %><% } if (changeDetect ion !== 'Default') { %>, encapsulation: ViewEncapsulation.<%= viewEncapsulation %><% } if (changeDetect ion !== 'Default') { %>,
changeDetection: ChangeDetectionStrategy.<%= changeDetection %><% } %> changeDetection: ChangeDetectionStrategy.<%= changeDetection %><% } %>
}) })
export class <%= classify(name) %>Component implements OnInit { export class <%= classify(name) %>Component implements AfterViewInit {
@ViewChild(MatPaginator) paginator: MatPaginator; @ViewChild(MatPaginator) paginator: MatPaginator;
@ViewChild(MatSort) sort: MatSort; @ViewChild(MatSort) sort: MatSort;
dataSource: <%= classify(name) %>DataSource; dataSource: <%= classify(name) %>DataSource;
/** Columns displayed in the table. Columns IDs can be added, removed, or reor dered. */ /** Columns displayed in the table. Columns IDs can be added, removed, or reor dered. */
displayedColumns = ['id', 'name']; displayedColumns = ['id', 'name'];
ngOnInit() { ngAfterViewInit() {
this.dataSource = new <%= classify(name) %>DataSource(this.paginator, this.s ort); this.dataSource = new <%= classify(name) %>DataSource(this.paginator, this.s ort);
} }
} }
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)