diff --git a/ionic/components/ion.ts b/ionic/components/ion.ts index 79b9c29267..e46ad3ed71 100644 --- a/ionic/components/ion.ts +++ b/ionic/components/ion.ts @@ -14,7 +14,7 @@ export class Ion { private _id: string; constructor(protected elementRef: ElementRef) { - this._id = 'i-' + ids++; + this._id = 'i' + ids++; } getElementRef() { diff --git a/ionic/components/tabs/tab-button.ts b/ionic/components/tabs/tab-button.ts index 399ab1d7bb..bf8a1e4341 100644 --- a/ionic/components/tabs/tab-button.ts +++ b/ionic/components/tabs/tab-button.ts @@ -1,6 +1,7 @@ import {Component, Directive, ElementRef, Optional, Host, forwardRef, ViewContainerRef, HostListener, EventEmitter, Output, Input, Renderer} from 'angular2/core'; import {Tab} from './tab'; +import {Ion} from '../ion'; import {Config} from '../../config/config'; @@ -20,17 +21,18 @@ import {Config} from '../../config/config'; '[class.disable-hover]': 'disHover' } }) -export class TabButton { +export class TabButton extends Ion { private disHover: boolean; private hasTitle: boolean; private hasIcon: boolean; private hasTitleOnly: boolean; private hasIconOnly: boolean; - + @Input() tab: Tab; @Output() select: EventEmitter = new EventEmitter(); - - constructor(config: Config) { + + constructor(config: Config, elementRef: ElementRef) { + super(elementRef); this.disHover = (config.get('hoverCSS') === false); }