Skip to content

Commit

Permalink
Merge pull request #1643 from angular-fullstack/chore/ng-bootstrap-1
Browse files Browse the repository at this point in the history
chore(bower): upgrade angular-bootstrap to ~1.1.2
  • Loading branch information
Awk34 committed Feb 19, 2016
2 parents 8b7941d + 3d061cc commit 8a1e9c3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/templates/_bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"angular-cookies": "~1.4.0",
"angular-sanitize": "~1.4.0",<% if (filters.ngroute) { %>
"angular-route": "~1.4.0",<% } if (filters.uibootstrap) { %>
"angular-bootstrap": "~0.13.0",<% } %>
"angular-bootstrap": "~1.1.2",<% } %>
"font-awesome": ">=4.1.0",
"lodash": "~2.4.1"<% if(filters.socketio) { %>,
"angular-socket-io": "~0.7.0"<% } if (filters.uirouter) { %>,
Expand Down
2 changes: 1 addition & 1 deletion app/templates/client/app/main/main(html).html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h1>'Allo, 'Allo!</h1>
<div class="col-lg-12">
<h1 class="page-header">Features:</h1>
<ul class="nav nav-tabs nav-stacked col-md-4 col-lg-4 col-sm-6" ng-repeat="thing in main.awesomeThings">
<li><a href="#" tooltip="{{thing.info}}">{{thing.name}}<% if (filters.socketio) { %><button type="button" class="close" ng-click="main.deleteThing(thing)">&times;</button><% } %></a></li>
<li><a href="#" uib-tooltip="{{thing.info}}">{{thing.name}}<% if (filters.socketio) { %><button type="button" class="close" ng-click="main.deleteThing(thing)">&times;</button><% } %></a></li>
</ul>
</div>
</div><% if (filters.socketio) { %>
Expand Down
2 changes: 1 addition & 1 deletion app/templates/client/app/main/main(jade).jade
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ header#banner.hero-unit
h1.page-header Features:
ul.nav.nav-tabs.nav-stacked.col-md-4.col-lg-4.col-sm-6(ng-repeat='thing in main.awesomeThings')
li
a(href='#', tooltip='{{thing.info}}')
a(href='#', uib-tooltip='{{thing.info}}')
| {{thing.name}}<% if (filters.socketio) { %>
button.close(type='button', ng-click='main.deleteThing(thing)') &times;<% } %><% if (filters.socketio) { %>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
'use strict';

angular.module('<%= scriptAppName %>')
.factory('Modal', function($rootScope, $modal) {
.factory('Modal', function($rootScope, $uibModal) {
/**
* Opens a modal
* @param {Object} scope - an object to be merged with modal's scope
* @param {String} modalClass - (optional) class(es) to be applied to the modal
* @return {Object} - the instance $modal.open() returns
* @return {Object} - the instance $uibModal.open() returns
*/
function openModal(scope = {}, modalClass = 'modal-default') {
var modalScope = $rootScope.$new();

angular.extend(modalScope, scope);

return $modal.open({
return $uibModal.open({
templateUrl: 'components/modal/modal.html',
windowClass: modalClass,
scope: modalScope
Expand Down
2 changes: 1 addition & 1 deletion app/templates/client/components/navbar/navbar(html).html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</button>
<a href="/" class="navbar-brand"><%= lodash.slugify(lodash.humanize(appname)) %></a>
</div>
<div collapse="nav.isCollapsed" class="navbar-collapse collapse" id="navbar-main">
<div uib-collapse="nav.isCollapsed" class="navbar-collapse collapse" id="navbar-main">
<ul class="nav navbar-nav">
<li ng-repeat="item in nav.menu" <% if (filters.uirouter) { %>ui-sref-active="active"<% } else { %>ng-class="{active: nav.isActive(item.link)}"<% } %>>
<a <% if (filters.uirouter) { %>ui-sref="{{item.state}}"<% } else { %>ng-href="{{item.link}}"<% } %>>{{item.title}}</a>
Expand Down
2 changes: 1 addition & 1 deletion app/templates/client/components/navbar/navbar(jade).jade
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ div.navbar.navbar-default.navbar-static-top(ng-controller='NavbarController')
span.icon-bar
a.navbar-brand(href='/') <%= lodash.slugify(lodash.humanize(appname)) %>

div#navbar-main.navbar-collapse.collapse(collapse='nav.isCollapsed')
div#navbar-main.navbar-collapse.collapse(uib-collapse='nav.isCollapsed')
ul.nav.navbar-nav
li(ng-repeat='item in nav.menu', <% if (filters.uirouter) { %>ui-sref-active='active'<% } else { %>ng-class='{active: nav.isActive(item.link)}'<% } %>)
a(<% if (filters.uirouter) { %>ui-sref='{{item.state}}'<% } else { %>ng-href='{{item.link}}'<% } %>) {{item.title}}<% if (filters.auth) { %>
Expand Down

0 comments on commit 8a1e9c3

Please sign in to comment.