File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -258,6 +258,7 @@ Generator.prototype.askForModules = function askForModules() {
258
258
259
259
if ( this . cookiesModule ) {
260
260
angMods . push ( "'ngCookies'" ) ;
261
+ this . env . options . ngCookies = true ;
261
262
}
262
263
263
264
if ( this . messagesModule ) {
@@ -266,6 +267,7 @@ Generator.prototype.askForModules = function askForModules() {
266
267
267
268
if ( this . resourceModule ) {
268
269
angMods . push ( "'ngResource'" ) ;
270
+ this . env . options . ngResource = true ;
269
271
}
270
272
271
273
if ( this . routeModule ) {
@@ -275,6 +277,7 @@ Generator.prototype.askForModules = function askForModules() {
275
277
276
278
if ( this . sanitizeModule ) {
277
279
angMods . push ( "'ngSanitize'" ) ;
280
+ this . env . options . ngSanitize = true ;
278
281
}
279
282
280
283
if ( this . touchModule ) {
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ util.inherits(Generator, ScriptBase);
12
12
13
13
Generator . prototype . createAppFile = function createAppFile ( ) {
14
14
this . angularModules = this . env . options . angularDeps ;
15
+ this . ngCookies = this . env . options . ngCookies ;
16
+ this . ngResource = this . env . options . ngResource ;
17
+ this . ngSanitize = this . env . options . ngSanitize ;
15
18
this . ngRoute = this . env . options . ngRoute ;
16
19
this . appTemplate ( 'app' , 'scripts/app' ) ;
17
20
} ;
Original file line number Diff line number Diff line change 1
- /// <reference path="../../bower_components/dt-angular/angular.d.ts" />
2
- < % if ( ngRoute ) { % > / / / < reference path = "../../bower_components/dt-angular/angular-route .d.ts" / > < % } % >
3
- /// <reference path="../../bower_components/dt-angular/angular-resource.d.ts" />
4
- /// <reference path="../../bower_components/dt-angular/angular-sanitize.d.ts" />
5
- /// <reference path="../../bower_components/dt-angular/angular-resource .d.ts" />
1
+ /// <reference path="../../bower_components/dt-angular/angular.d.ts" /><% if (ngCookies) { %>
2
+ /// <reference path="../../bower_components/dt-angular/angular-cookies .d.ts" /><% } %><% if (ngResource) { %>
3
+ /// <reference path="../../bower_components/dt-angular/angular-resource.d.ts" /><% } %><% if (ngSanitize) { %>
4
+ /// <reference path="../../bower_components/dt-angular/angular-sanitize.d.ts" /><% } %><% if (ngRoute) { %>
5
+ /// <reference path="../../bower_components/dt-angular/angular-route .d.ts" /><% } % >
6
6
7
7
'use strict' ;
8
8
You can’t perform that action at this time.
0 commit comments