Theme preview: Add inputs as fragment. Delete material icons from icons services
parent
821c4242be
commit
11d0be4ffd
@ -0,0 +1 @@
|
||||
<p>pick-icon works!</p>
|
@ -0,0 +1,21 @@
|
||||
import {Component, OnDestroy, OnInit} from '@angular/core';
|
||||
import {Icon} from "../../utils/icons/icons";
|
||||
import {IconsService} from "../../utils/icons/icons.service";
|
||||
|
||||
@Component({
|
||||
selector: 'pick-icon',
|
||||
templateUrl: './pick-icon.component.html'
|
||||
})
|
||||
export class PickIconComponent implements OnInit, OnDestroy{
|
||||
customIcons: Icon[] = [];
|
||||
|
||||
constructor(private iconService: IconsService) {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.customIcons = this.iconService.getAll();
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { PickIconComponent } from './pick-icon.component';
|
||||
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
PickIconComponent
|
||||
],
|
||||
exports: [
|
||||
PickIconComponent
|
||||
],
|
||||
imports: [
|
||||
CommonModule
|
||||
]
|
||||
})
|
||||
export class PickIconModule { }
|
Loading…
Reference in New Issue