Update to angular2-rc.2
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Component, OnInit, Input } from '@angular/core';
|
||||
import { NgSwitch, NgSwitchWhen } from '@angular/common';
|
||||
import { NgSwitch, NgSwitchCase } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
@@ -7,16 +7,16 @@ import { NgSwitch, NgSwitchWhen } from '@angular/common';
|
||||
template:
|
||||
`
|
||||
<div [ngSwitch]="name">
|
||||
<span *ngSwitchWhen="'option-vertical'" class="glyphicon glyphicon-option-vertical" aria-hidden="true"></span>
|
||||
<i *ngSwitchWhen="'square'" class="fa fa-square"></i>
|
||||
<i *ngSwitchWhen="'mouse-pointer'" class="fa fa-mouse-pointer"></i>
|
||||
<i *ngSwitchWhen="'clock'" class="fa fa-clock-o"></i>
|
||||
<i *ngSwitchWhen="'trash'" class="glyphicon glyphicon-trash action--trash"></i>
|
||||
<i *ngSwitchWhen="'pencil'" class="glyphicon glyphicon-pencil action--edit"></i>
|
||||
<i *ngSwitchWhen="'question-circle'" class ="fa fa-question-circle"></i>
|
||||
<span *ngSwitchCase="'option-vertical'" class="glyphicon glyphicon-option-vertical" aria-hidden="true"></span>
|
||||
<i *ngSwitchCase="'square'" class="fa fa-square"></i>
|
||||
<i *ngSwitchCase="'mouse-pointer'" class="fa fa-mouse-pointer"></i>
|
||||
<i *ngSwitchCase="'clock'" class="fa fa-clock-o"></i>
|
||||
<i *ngSwitchCase="'trash'" class="glyphicon glyphicon-trash action--trash"></i>
|
||||
<i *ngSwitchCase="'pencil'" class="glyphicon glyphicon-pencil action--edit"></i>
|
||||
<i *ngSwitchCase="'question-circle'" class ="fa fa-question-circle"></i>
|
||||
</div>
|
||||
`,
|
||||
directives: [NgSwitch, NgSwitchWhen],
|
||||
directives: [NgSwitch, NgSwitchCase],
|
||||
styles: [require('./icon.component.scss')]
|
||||
})
|
||||
export class IconComponent implements OnInit {
|
||||
|
||||
Reference in New Issue
Block a user