Skip to content

Commit

Permalink
fix(views): fix ng includes
Browse files Browse the repository at this point in the history
  • Loading branch information
DaftMonk committed Dec 22, 2013
1 parent d07c829 commit 598c69a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion templates/views/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<% if (ngRoute) {
%><div class="container" ng-view></div><%
} else {
%><div class="container" ng-include="'views/main.html'" ng-controller="MainCtrl"></div><%
%><div class="container" ng-include="'views/main'" ng-controller="MainCtrl"></div><%
} %>

<!-- Google Analytics: change UA-XXXXX-X to be your site's ID -->
Expand Down
2 changes: 1 addition & 1 deletion templates/views/html/partials/main.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div ng-include="'partials/navbar.html'"></div>
<div ng-include="'partials/navbar'"></div>

<div class="jumbotron">
<h1>'Allo, 'Allo!</h1>
Expand Down
6 changes: 5 additions & 1 deletion templates/views/jade/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ html.no-js
<![endif]
// Add your site or application content here
div(class="container", ng-view)
div(class="container" ng-view)
<% if (ngRoute) { %>
div(class="container" ng-view)<%
} else { %>
div(class="container" ng-include="'views/main'" ng-controller="MainCtrl")<% } %>

// Google Analytics: change UA-XXXXX-X to be your site's ID.
script.
Expand Down
2 changes: 1 addition & 1 deletion templates/views/jade/partials/main.jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
div(ng-include='\'partials/navbar.html\'')
div(ng-include="'partials/navbar.html'")

.jumbotron
h1 'Allo, 'Allo!
Expand Down

0 comments on commit 598c69a

Please sign in to comment.