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