WIP
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<span class="MD2Icon {{icon}} {{iconClass}}"></span>
|
||||
@@ -0,0 +1,25 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { MD2IconComponent } from './md2-icon.component';
|
||||
|
||||
describe('MD2IconComponent', () => {
|
||||
let component: MD2IconComponent;
|
||||
let fixture: ComponentFixture<MD2IconComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ MD2IconComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(MD2IconComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,21 @@
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
import { MD2Icon } from '../massive-darkness2.model';
|
||||
|
||||
@Component({
|
||||
selector: 'md2-icon',
|
||||
templateUrl: './md2-icon.component.html',
|
||||
styleUrls: ['./md2-icon.component.scss']
|
||||
})
|
||||
export class MD2IconComponent implements OnInit {
|
||||
|
||||
@Input() iconClass: string = '';
|
||||
|
||||
@Input("icon") icon: MD2Icon;
|
||||
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user