Skip to content

Commit

Permalink
Inject $rootScope into directive for #broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
snapjay committed Aug 5, 2015
1 parent ef4133c commit 19e7ea1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/ngCart.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ angular.module('ngCart.directives', ['ngCart.fulfilment'])
.directive('ngcartCheckout', [function(){
return {
restrict : 'E',
controller : ('CartController', ['$scope', 'ngCart', 'fulfilmentProvider', function($scope, ngCart, fulfilmentProvider) {
controller : ('CartController', ['$rootScope', '$scope', 'ngCart', 'fulfilmentProvider', function($rootScope, $scope, ngCart, fulfilmentProvider) {
$scope.ngCart = ngCart;

$scope.checkout = function () {
Expand Down
2 changes: 1 addition & 1 deletion dist/ngCart.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/ngCart.directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ angular.module('ngCart.directives', ['ngCart.fulfilment'])
.directive('ngcartCheckout', [function(){
return {
restrict : 'E',
controller : ('CartController', ['$scope', 'ngCart', 'fulfilmentProvider', function($scope, ngCart, fulfilmentProvider) {
controller : ('CartController', ['$rootScope', '$scope', 'ngCart', 'fulfilmentProvider', function($rootScope, $scope, ngCart, fulfilmentProvider) {
$scope.ngCart = ngCart;

$scope.checkout = function () {
Expand Down

0 comments on commit 19e7ea1

Please sign in to comment.