Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 510c503

Browse files
committed
Make service dependencies explicit to allow minification
1 parent 6873941 commit 510c503

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

angularFire.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ angular.module('firebase', []).value('Firebase', Firebase);
55
// Implicit syncing. angularFire binds a model to $scope and keeps the dat
66
// synchronized with a Firebase location both ways.
77
// TODO: Optimize to use child events instead of whole 'value'.
8-
angular.module('firebase').factory('angularFire', function($q) {
8+
angular.module('firebase').factory('angularFire', ['$q', function($q) {
99
return function(url, scope, name, ret) {
1010
var af = new AngularFire($q, url);
1111
return af.associate(scope, name, ret);
1212
};
13-
});
13+
}]);
1414

1515
function AngularFire($q, url) {
1616
this._q = $q;
@@ -91,7 +91,7 @@ AngularFire.prototype = {
9191
// Explicit syncing. Provides a collection object you can modify.
9292
// Original code by @petebacondarwin, from:
9393
// https://github.com/petebacondarwin/angular-firebase/blob/master/ng-firebase-collection.js
94-
angular.module('firebase').factory('angularFireCollection', function($timeout) {
94+
angular.module('firebase').factory('angularFireCollection', ['$timeout', function($timeout) {
9595
function angularFireItem(ref, index) {
9696
this.$ref = ref.ref();
9797
this.$id = ref.name();
@@ -205,4 +205,4 @@ angular.module('firebase').factory('angularFireCollection', function($timeout) {
205205

206206
return collection;
207207
};
208-
});
208+
}]);

examples/chat/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<input type="submit" id="submit" value="Send" style="font-size:24px;">
2222
</form>
2323
<script src="https://cdn.firebase.com/v0/firebase.js"></script>
24-
<script src="../../angularFire.js"></script>
24+
<script src="../../angularfire.min.js"></script>
2525
<script src="app.js"></script>
2626
</body>
2727
</html>

examples/todomvc/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ <h1>todos</h1>
6262
<script src="components/todomvc-common/base.js"></script>
6363
<script src="components/angular/angular.js"></script>
6464
<script src="https://cdn.firebase.com/v0/firebase.js"></script>
65-
<script src="../../angularFire.js"></script>
65+
<script src="../../angularfire.min.js"></script>
6666
<script src="js/app.js"></script>
6767
<script src="js/controllers/todoCtrl.js"></script>
6868
<script src="js/directives/todoFocus.js"></script>

0 commit comments

Comments
 (0)