icon and item docs wip

This commit is contained in:
Tim Lancina
2015-08-28 15:06:07 -07:00
parent 6110daafc7
commit e985e6aeff
5 changed files with 55 additions and 6 deletions

View File

@@ -6,6 +6,9 @@ import {Ion} from '../ion';
import {Button} from '../button/button';
/**
* TODO
*/
@Directive({
selector: 'icon',
properties: [
@@ -20,6 +23,13 @@ import {Button} from '../button/button';
}
})
export class Icon {
/**
* TODO
* @param {ElementRef} elementRef TODO
* @param {Button} hostButton TODO
* @param {IonicConfig} config TODO
* @param {Renderer} renderer TODO
*/
constructor(
private elementRef: ElementRef,
@Optional() @Host() hostButton: Button,
@@ -61,6 +71,9 @@ export class Icon {
}
}
/**
* TODO
*/
onInit() {
if (this.mode == 'ios' && this.ios) {
this.name = this.ios;