Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {CdkTreeModule} from '@angular/cdk/tree';
import {CommonModule} from '@angular/common';
import {AsyncPipe} from '@angular/common';
import {ChangeDetectionStrategy, Component, OnInit} from '@angular/core';
import {MatButtonModule} from '@angular/material/button';
import {MatIconModule} from '@angular/material/icon';
Expand Down Expand Up @@ -247,7 +247,7 @@ class ComplexDataStore {
selector: 'cdk-tree-complex-example',
templateUrl: 'cdk-tree-complex-example.html',
styleUrls: ['cdk-tree-complex-example.css'],
imports: [CdkTreeModule, MatButtonModule, MatIconModule, CommonModule, MatProgressSpinnerModule],
imports: [CdkTreeModule, MatButtonModule, MatIconModule, MatProgressSpinnerModule, AsyncPipe],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class CdkTreeComplexExample implements OnInit {
Expand Down
3 changes: 1 addition & 2 deletions src/dev-app/system/system-demo.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {CommonModule} from '@angular/common';
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {MatCardModule} from '@angular/material/card';

Expand Down Expand Up @@ -30,7 +29,7 @@ interface ColorGroup {
selector: 'system-demo',
templateUrl: 'system-demo.html',
styleUrls: ['system-demo.css'],
imports: [CommonModule, MatCardModule],
imports: [MatCardModule],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class SystemDemo {
Expand Down
1 change: 1 addition & 0 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
{"name": ["Object", "assign"], "message": "Use the spread operator instead."},
{"name": ["*", "asObservable"], "message": "Cast to Observable type instead."},
{"name": ["*", "removeChild"], "message": "Use `remove` instead instead."},
{"name": ["CommonModule"], "message": "Import the necessary symbols directly instead."},
{"name": ["*", "compileComponents"], "message": "`compileComponents` is not necessary."},
{
"name": ["isDevMode"],
Expand Down
Loading