Skip to content

Commit

Permalink
Added depedency injection fix + yarn.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick de Graaff committed May 2, 2017
1 parent a1f4d0d commit 0e6f970
Show file tree
Hide file tree
Showing 6 changed files with 3,715 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"node_modules",
"bower_components"
],
"dependencies": {
"dev-dependencies": {
"angular": ">=1.5.0"
}
}
2 changes: 1 addition & 1 deletion dist/minified/ng-arise.min.css

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

2 changes: 1 addition & 1 deletion dist/minified/ng-arise.min.js

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

10 changes: 5 additions & 5 deletions dist/unminified/ng-arise.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
* Copyright (c) 2017 Rick de Graaff
* License: MIT
*
* Generated at Tuesday, March 7th, 2017, 1:19:37 PM
* Generated at Tuesday, May 2nd, 2017, 4:03:11 PM
*/
(function() {
'use strict';

var OBJECTERROR = 'The options should be an object';

angular.module('ngArise', ['ngAriseTemplates'])
.provider('arise', function () {
.provider('arise', [function () {
this.options = {
title: 'Please wait',
message: 'We\'re loading data',
Expand All @@ -35,7 +35,7 @@ angular.module('ngArise', ['ngAriseTemplates'])
}
};

this.$get = function ($http, $templateCache) {
this.$get = ['$http', '$templateCache', function ($http, $templateCache) {
var options = this.options;
$http.get(options.templateUrl, {cache: $templateCache})
.then(function () {
Expand All @@ -45,8 +45,8 @@ angular.module('ngArise', ['ngAriseTemplates'])
});

return this;
};
})
}];
}])
.directive('ngArise', ['$templateCache', 'arise', function ($templateCache, arise) {
return {
restrict: 'EA',
Expand Down
8 changes: 4 additions & 4 deletions src/ng-arise.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
var OBJECTERROR = 'The options should be an object';

angular.module('ngArise', ['ngAriseTemplates'])
.provider('arise', function () {
.provider('arise', [function () {
this.options = {
title: 'Please wait',
message: 'We\'re loading data',
Expand All @@ -24,7 +24,7 @@ angular.module('ngArise', ['ngAriseTemplates'])
}
};

this.$get = function ($http, $templateCache) {
this.$get = ['$http', '$templateCache', function ($http, $templateCache) {
var options = this.options;
$http.get(options.templateUrl, {cache: $templateCache})
.then(function () {
Expand All @@ -34,8 +34,8 @@ angular.module('ngArise', ['ngAriseTemplates'])
});

return this;
};
})
}];
}])
.directive('ngArise', ['$templateCache', 'arise', function ($templateCache, arise) {
return {
restrict: 'EA',
Expand Down
Loading

0 comments on commit 0e6f970

Please sign in to comment.