This repository has been archived by the owner on Jul 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #191: yeoman 0.20.1 - new templating engine
- Loading branch information
Showing
7 changed files
with
29 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
'use strict'; | ||
angular.module('<%= moduleName %>') | ||
.controller('<%= controllerName %>', function (<% if(options.sample === 'start') { %>Start, Config<% } %>) { | ||
<% if (options.sample === 'start') {%> | ||
|
||
console.log('Hello from your Controller: <%= controllerName %> in module <%= moduleName%>:. This is your controller:', this); | ||
// TODO: do your controller thing | ||
|
||
<% if (options.sample === 'start') {-%> | ||
// bind data from service | ||
this.someData = Start.someData; | ||
this.ENV = Config.ENV; | ||
this.BUILD = Config.BUILD; | ||
<% } %> | ||
console.log('Hello from your Controller: <%= controllerName %> in module <%= moduleName%>:. This is your controller:', this); | ||
// TODO: do your controller thing | ||
|
||
<% } -%> | ||
}); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
'use strict'; | ||
angular.module('<%= moduleName %>') | ||
.service('<%= serviceName %>', function () { | ||
|
||
console.log('Hello from your Service: <%= serviceName %> in module <%= moduleName %>'); | ||
<% if(options.sample === 'start') {%> | ||
// TODO: do your service thing | ||
|
||
<% if(options.sample === 'start') { -%> | ||
// some initial data | ||
this.someData = { | ||
binding: 'Yes! Got that databinding working' | ||
}; | ||
<% } %> | ||
// TODO: do your service thing | ||
|
||
<% } -%> | ||
}); |
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,6 +1,7 @@ | ||
<ion-view view-title="<%= moduleName %> module"> | ||
<ion-content> | ||
<ion-list> | ||
|
||
<ion-item class="item item-divider"> | ||
This is your <%= templateName %> template! | ||
</ion-item> | ||
|
@@ -12,7 +13,7 @@ | |
images working?<br> | ||
<img width="75" src="main/assets/images/[email protected]"> | ||
</ion-item> | ||
<% if(options.sample === 'start') {%> | ||
<% if(options.sample === 'start') { -%> | ||
<ion-item class="item">{{start.someData.binding}}</ion-item> | ||
<ion-item class="item item-divider">Environment variables:</ion-item> | ||
<ion-item class="item item-text-wrap"> | ||
|
@@ -22,7 +23,8 @@ | |
<ion-item class="item item-text-wrap"> | ||
<pre>{{start.BUILD | json}}</pre> | ||
</ion-item> | ||
<% } %> | ||
<% } -%> | ||
|
||
</ion-list> | ||
</ion-content> | ||
</ion-view> |