Skip to content

Commit 2eb612d

Browse files
committed
fix ngRoute module being included as a dependency for app with ui-router
1 parent b978323 commit 2eb612d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ var AngularFullstackGenerator = yeoman.generators.Base.extend({
210210
"'ngCookies'",
211211
"'ngResource'",
212212
"'ngSanitize'",
213-
"'ngRoute'",
214213
"'ui.bootstrap'"
215214
];
215+
if(this.filters['ngroute']) angModules.push("'ngRoute'");
216216
if(this.filters['socketio']) angModules.push("'btford.socket-io'");
217217
if(this.filters['uirouter']) angModules.push("'ui.router'");
218218

0 commit comments

Comments
 (0)