Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
24いいね 957回再生

The Missing Page and Frame Objects in NativeScript with Angular

That’s right, since v4 the NativeScript with Angular bootsrapping code has a new option to create a frame.

You are are wondering why your topmost() Frame is undefined or your injected Page is null, then check out this tip.

You might miss it if you do fun and unconventional things with NativeScript that you can’t do with angular alone. Things like using the frame to natively navigate outside the scope of an angular component (which is useful for some scenarios like authentication). Or you can use the page object to build UI widgets programmatically, or hook into the page lifecycle that’s outside of the angular component lifecycle.

This video shows how find your (topmost) Frame and inject a Page into your components even when not using page-router-outlet

コメント