mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
refactor(nav): replace DynamicComponentLoader w/ ComponentFactory
This commit is contained in:
@ -98,7 +98,7 @@ export class ViewController {
|
||||
*/
|
||||
@Output() private _emitter: EventEmitter<any> = new EventEmitter();
|
||||
|
||||
constructor(public componentType?: Type, data?: any) {
|
||||
constructor(public componentType?: any, data?: any) {
|
||||
// passed in data could be NavParams, but all we care about is its data object
|
||||
this.data = (data instanceof NavParams ? data.data : (isPresent(data) ? data : {}));
|
||||
|
||||
|
Reference in New Issue
Block a user