-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(generators): sandbox setup and mode for windows
- Loading branch information
1 parent
529cd6c
commit 77246e8
Showing
3 changed files
with
101 additions
and
82 deletions.
There are no files selected for viewing
15 changes: 13 additions & 2 deletions
15
src/app.nativescript/_routing_files/app/features/home/components/home.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
<% if (setupSandbox) { %>import { RouterExtensions } from 'nativescript-angular/router';<% } %> | ||
import { BaseComponent } from '@<%= npmScope %>/core'; | ||
|
||
@Component({ | ||
moduleId: module.id, | ||
selector: '<%= prefix %>-home', | ||
templateUrl: './home.component.html' | ||
}) | ||
export class HomeComponent extends BaseComponent {} | ||
export class HomeComponent extends BaseComponent { | ||
<% if (setupSandbox) { %> | ||
constructor(private _routerExt: RouterExtensions) { | ||
|
||
} | ||
|
||
// for quick sandbox feature creation | ||
goTo(route: string) { | ||
this._routerExt.navigate([route]); | ||
} | ||
<% } %> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters