mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 10:01:59 +08:00
chore(angular): strict tslint (#16708)
This commit is contained in:
@ -37,7 +37,6 @@ function setBack(views: RouteView[], view: RouteView) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export function getUrl(router: Router, activatedRoute: ActivatedRoute) {
|
||||
const urlTree = router.createUrlTree(['.'], { relativeTo: activatedRoute });
|
||||
return router.serializeUrl(urlTree);
|
||||
@ -73,7 +72,7 @@ export function toSegments(path: string): string[] {
|
||||
.filter(s => s !== '');
|
||||
}
|
||||
|
||||
export function destroyView(view: RouteView) {
|
||||
export function destroyView(view: RouteView | undefined) {
|
||||
if (view) {
|
||||
// TODO lifecycle event
|
||||
view.ref.destroy();
|
||||
|
Reference in New Issue
Block a user