AngularJS: $routeProvider and modals
I am using $routeProvider for my routes in my soon-to-be awesome (first)
angular app.
However I can't seem to figure out how to open a modal when an item is
pressed.
IE:
http://localhost:3000/#/items/1
Should open a Boostrap details modal (template + controller) with the
item's model.
Can this be accomplished with the $routeProvider approach:
.when('/items/1', {
templateUrl: 'views/ItemDetails.html',
controller: 'ItemDetailsCtrl'
})
...
Help?
No comments:
Post a Comment