mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
use injector instead of passing params
This commit is contained in:
@ -36,15 +36,13 @@ export class Tab extends ViewController {
|
||||
|
||||
constructor(
|
||||
@Parent() tabs: Tabs,
|
||||
compiler: Compiler,
|
||||
elementRef: ElementRef,
|
||||
loader: DynamicComponentLoader,
|
||||
injector: Injector
|
||||
) {
|
||||
// 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, compiler, elementRef, loader, injector);
|
||||
super(tabs, injector);
|
||||
this.tabs = tabs;
|
||||
|
||||
this.childNavbar(true);
|
||||
|
Reference in New Issue
Block a user