File tree 6 files changed +28
-16
lines changed
nativescript-angular-package
6 files changed +28
-16
lines changed Original file line number Diff line number Diff line change
1
+ <a name =" 8.20.4 " ></a >
2
+ ## [ 8.20.4] ( https://github.com/NativeScript/nativescript-angular/compare/8.20.3...8.20.4 ) (2020-01-07)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * add context to frame navigation ([ #2100 ] ( https://github.com/NativeScript/nativescript-angular/pull/2100 ) )
8
+ * wrong import path in compat package ([ #2097 ] ( https://github.com/NativeScript/nativescript-angular/pull/2097 ) )
9
+
10
+
11
+
1
12
<a name =" 8.20.3 " ></a >
2
13
## [ 8.20.3] ( https://github.com/NativeScript/nativescript-angular/compare/8.20.2...8.20.3 ) (2019-11-13)
3
14
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " nativescript-angular" ,
3
- "version" : " 8.30 .0" ,
3
+ "version" : " 8.21 .0" ,
4
4
"description" : " An Angular renderer that lets you build mobile apps with NativeScript." ,
5
5
"homepage" : " https://www.nativescript.org/" ,
6
6
"bugs" : " https://github.com/NativeScript/nativescript-angular/issues" ,
Original file line number Diff line number Diff line change 1
1
// Bootstrap helper module for jasmine spec tests
2
2
import "@nativescript/angular/platform" ;
3
- import "@nativescript/angular/dist/zone-nativescript.jasmine.js" ;
3
+ import "@nativescript/angular/zone-js/ dist/zone-nativescript.jasmine.js" ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @nativescript/angular" ,
3
- "version" : " 8.30 .0" ,
3
+ "version" : " 8.21 .0" ,
4
4
"description" : " An Angular renderer that lets you build mobile apps with NativeScript." ,
5
5
"homepage" : " https://www.nativescript.org/" ,
6
6
"bugs" : " https://github.com/NativeScript/nativescript-angular/issues" ,
Original file line number Diff line number Diff line change @@ -191,19 +191,8 @@ export class NativeScriptPlatformRef extends PlatformRef {
191
191
@profile
192
192
private bootstrapNativeScriptApp ( ) {
193
193
const autoCreateFrame = ! ! this . appOptions . createFrameOnBootstrap ;
194
- let tempAppHostView : AppHostView ;
195
194
let rootContent : View ;
196
195
197
- if ( autoCreateFrame ) {
198
- const { page, frame } = this . createFrameAndPage ( false ) ;
199
- setRootPage ( page ) ;
200
- rootContent = frame ;
201
- } else {
202
- // Create a temp page for root of the renderer
203
- tempAppHostView = new AppHostView ( ) ;
204
- setRootPage ( < any > tempAppHostView ) ;
205
- }
206
-
207
196
if ( isLogEnabled ( ) ) {
208
197
bootstrapLog ( "NativeScriptPlatform bootstrap started." ) ;
209
198
}
@@ -214,6 +203,17 @@ export class NativeScriptPlatformRef extends PlatformRef {
214
203
bootstrapLog ( "Application launch event fired" ) ;
215
204
}
216
205
206
+ let tempAppHostView : AppHostView ;
207
+ if ( autoCreateFrame ) {
208
+ const { page, frame } = this . createFrameAndPage ( false ) ;
209
+ setRootPage ( page ) ;
210
+ rootContent = frame ;
211
+ } else {
212
+ // Create a temp page for root of the renderer
213
+ tempAppHostView = new AppHostView ( ) ;
214
+ setRootPage ( < any > tempAppHostView ) ;
215
+ }
216
+
217
217
let bootstrapPromiseCompleted = false ;
218
218
this . _bootstrapper ( ) . then (
219
219
moduleRef => {
Original file line number Diff line number Diff line change @@ -361,13 +361,13 @@ export class PageRouterOutlet implements OnDestroy { // tslint:disable-line:dire
361
361
this . changeDetector . markForCheck ( ) ;
362
362
363
363
this . activated = loaderRef . instance . loadWithFactory ( factory ) ;
364
- this . loadComponentInPage ( page , this . activated ) ;
364
+ this . loadComponentInPage ( page , this . activated , { activatedRoute } ) ;
365
365
366
366
this . activated [ loaderRefSymbol ] = loaderRef ;
367
367
}
368
368
369
369
@profile
370
- private loadComponentInPage ( page : Page , componentRef : ComponentRef < any > ) : void {
370
+ private loadComponentInPage ( page : Page , componentRef : ComponentRef < any > , navigationContext ) : void {
371
371
// Component loaded. Find its root native view.
372
372
const componentView = componentRef . location . nativeElement ;
373
373
// Remove it from original native parent.
@@ -406,6 +406,7 @@ export class PageRouterOutlet implements OnDestroy { // tslint:disable-line:dire
406
406
create ( ) {
407
407
return page ;
408
408
} ,
409
+ context : navigationContext ,
409
410
clearHistory : navOptions . clearHistory ,
410
411
animated : navOptions . animated ,
411
412
transition : navOptions . transition
You can’t perform that action at this time.
0 commit comments