fix(note): separate note from item so its styles will alway be applied

this was discussed with Ben previously, fixes #9173
This commit is contained in:
Brandy Carney
2016-11-22 12:45:40 -05:00
parent 8ae904759b
commit bf00803737
13 changed files with 111 additions and 35 deletions

View File

@ -1,5 +1,7 @@
import { Directive } from '@angular/core';
import { Directive, ElementRef, Input, Renderer } from '@angular/core';
import { Config } from '../../config/config';
import { Ion } from '../ion';
/**
* @private
@ -7,4 +9,26 @@ import { Directive } from '@angular/core';
@Directive({
selector: 'ion-note'
})
export class Note {}
export class Note extends Ion {
/**
* @input {string} The predefined color to use. For example: `"primary"`, `"secondary"`, `"danger"`.
*/
@Input()
set color(val: string) {
this._setColor(val);
}
/**
* @input {string} The mode to apply to this component.
*/
@Input()
set mode(val: string) {
this._setMode(val);
}
constructor(config: Config, elementRef: ElementRef, renderer: Renderer) {
super(config, elementRef, renderer, 'note');
}
}