Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 8326819

Browse files
committed
1 parent 3b8c10f commit 8326819

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ module.exports = function (grunt) {
223223
target: {
224224
src: '<%= yeoman.client %>/index.html',
225225
ignorePath: '<%= yeoman.client %>/',
226-
exclude: [/bootstrap-sass-official/, /bootstrap.js/, '/json3/', '/es5-shim/', /bootstrap.css/, /font-awesome.css/ ]
226+
exclude: [/bootstrap-sass-official/, '/json3/', '/es5-shim/', /bootstrap.css/, /font-awesome.css/ ]
227227
}
228228
},
229229

client/app/app.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ angular.module('jayMapApp', [
2323
});
2424
}])
2525

26+
.directive('navbarCollapse', function () {
27+
return function postLink(scope, element) {
28+
var nav = element.find('.navbar-collapse');
29+
element.find('button.navbar-toggle').click(function() { nav.collapse('toggle'); });
30+
};
31+
})
32+
2633
.factory('authInterceptor', function ($rootScope, $q, $cookieStore, $location) {
2734
return {
2835
// Add authorization token to headers

client/components/navbar/navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="navbar navbar-default navbar-static-top" ng-controller="NavbarCtrl">
1+
<div class="navbar navbar-default navbar-static-top" ng-controller="NavbarCtrl" navbar-collapse>
22
<div class="container">
33
<div class="navbar-header">
44
<button class="navbar-toggle" type="button" ng-click="isCollapsed = !isCollapsed">

client/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
<!-- bower:js -->
5252
<script src="bower_components/jquery/dist/jquery.js"></script>
5353
<script src="bower_components/angular/angular.js"></script>
54+
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
5455
<script src="bower_components/angular-resource/angular-resource.js"></script>
5556
<script src="bower_components/angular-cookies/angular-cookies.js"></script>
5657
<script src="bower_components/angular-sanitize/angular-sanitize.js"></script>

0 commit comments

Comments
 (0)