Skip to content

Commit

Permalink
fixed angular application context
Browse files Browse the repository at this point in the history
  • Loading branch information
logeshpaul committed Apr 1, 2015
1 parent c22cec8 commit 590124d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ smacssGenerator.prototype.copyMainFiles = function copyMainFiles() {
this.copy("scss/_page_landing.scss", this.appName + "/app/scss/pages/page-landing.scss");

if (this.appType === 'typeAngularApp') {
this.copy("js/_angular_application.js", this.appName + "/app/js/application.js", smacssGenerator.context);
this.template("js/_angular_application.js", this.appName + "/app/js/application.js", smacssGenerator.context);
}
else {
this.copy("js/_application.js", this.appName + "/app/js/application.js");
Expand Down
3 changes: 1 addition & 2 deletions app/templates/js/_angular_application.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*================================================================
=> App = <%= site_name %>
App <%= site_name %>
==================================================================*/
/*global angular*/

Expand All @@ -8,7 +8,6 @@
var app = angular.module('<%= site_name %>', ['ngRoute']);

app.config(['$routeProvider', function($routeProvider) {

$routeProvider
.when('', {
controller: '',
Expand Down

0 comments on commit 590124d

Please sign in to comment.