Skip to content

Commit

Permalink
fix(navbar): fix controller constructor with ng-route + auth
Browse files Browse the repository at this point in the history
add a comma if both conditions pass

closes #1462
  • Loading branch information
Awk34 committed Dec 7, 2015
1 parent dc3295e commit 4b59e1f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class NavbarController {
isCollapsed = true;
//end-non-standard

constructor(<% if(!filters.uirouter) { %>$location<% } %><% if (filters.auth) { %>Auth<% } %>) {<% if(!filters.uirouter) { %>
constructor(<% if(!filters.uirouter) { %>$location<% } if(!filters.uirouter && filters.auth) { %>, <% } if (filters.auth) { %>Auth<% } %>) {<% if(!filters.uirouter) { %>
this.$location = $location;<% } %>
<% if (filters.auth) { %>this.isLoggedIn = Auth.isLoggedIn;
this.isAdmin = Auth.isAdmin;
Expand Down

0 comments on commit 4b59e1f

Please sign in to comment.