mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(NavRegistry): load empty view array if undefined
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
* Map of possible views that can be navigated to using an Ionic NavController
|
* Map of possible views that can be navigated to using an Ionic NavController
|
||||||
*/
|
*/
|
||||||
export class NavRegistry {
|
export class NavRegistry {
|
||||||
constructor(views) {
|
constructor(views=[]) {
|
||||||
this._views = new Map(views.map(view => [view.name, view]));
|
this._views = new Map(views.map(view => [view.name, view]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user