沈斌
2017-12-15 f9b157566af34b8dc28ba10b34d025ac04f3168b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { Component } from '@angular/core';
import { ColorsService } from '@delon/theme';
 
@Component({
    selector: 'app-colors',
    templateUrl: './colors.component.html'
})
export class ColorsComponent {
    nums = Array(10).fill(1).map((v, i) => v + i);
    colors = [];
    constructor(public colorSrv: ColorsService) {
        this.colors = colorSrv.names.slice(0, colorSrv.names.length - 1);
    }
}