mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(Ion): Base component class
This commit is contained in:
@@ -38,7 +38,7 @@ export class Tab extends ViewController {
|
||||
// A Tab is both a container of many views, and is a view itself.
|
||||
// A Tab is one ViewItem within it's parent Tabs (which extends ViewController)
|
||||
// A Tab is a ViewController for its child ViewItems
|
||||
super(tabs, injector);
|
||||
super(tabs, injector, elementRef);
|
||||
this.tabs = tabs;
|
||||
|
||||
this.childNavbar(true);
|
||||
|
||||
@@ -2,7 +2,7 @@ import {Optional} from 'angular2/src/di/annotations_impl'
|
||||
import {Component, onInit} from 'angular2/src/core/annotations_impl/annotations';
|
||||
import {View} from 'angular2/src/core/annotations_impl/view';
|
||||
import {Injector} from 'angular2/di';
|
||||
import {NgFor} from 'angular2/angular2';
|
||||
import {NgFor, ElementRef} from 'angular2/angular2';
|
||||
|
||||
import {ViewController} from '../view/view-controller';
|
||||
import {ViewItem} from '../view/view-item';
|
||||
@@ -43,9 +43,10 @@ export class Tabs extends ViewController {
|
||||
constructor(
|
||||
@Optional() parentViewCtrl: ViewController,
|
||||
@Optional() viewItem: ViewItem,
|
||||
injector: Injector
|
||||
injector: Injector,
|
||||
elementRef: ElementRef
|
||||
) {
|
||||
super(parentViewCtrl, injector);
|
||||
super(parentViewCtrl, injector, elementRef);
|
||||
|
||||
// Tabs may also be an actual ViewItem which was navigated to
|
||||
// if Tabs is static and not navigated to within a ViewController
|
||||
|
||||
Reference in New Issue
Block a user