This repository was archived by the owner on Aug 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathindex.js
More file actions
54 lines (39 loc) · 1.28 KB
/
index.js
File metadata and controls
54 lines (39 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* jshint browser:true */
/* global require, angular */
/* exported goinstant */
/**
* @fileOverview
*
* Contains Angular service and filter registrations
**/
'use strict';
var connectionFactory = require('./lib/connection_factory');
var keySyncFactory = require('./lib/key_sync_factory');
var keyFactory = require('./lib/key_factory');
var querySync = require('./lib/query_sync');
var queryFactory = require('./lib/query_factory');
var usersSyncFactory = require('./lib/users_sync_factory');
var usersFactory = require('./lib/users_factory');
var keyFilter = require('./lib/key_filter');
/** Module Registration */
var goangular = angular.module('goangular', []);
/** Services **/
goangular.provider('$goConnection', connectionFactory);
goangular.factory('$goKeySync', [ '$parse', '$timeout', keySyncFactory ]);
goangular.factory('$goKey', [ '$goKeySync', '$goConnection', keyFactory ]);
goangular.factory('$goQuerySync', [ '$parse', '$timeout', querySync ]);
goangular.factory('$goQuery', [
'$goQuerySync',
'$goKey',
'$goConnection',
queryFactory
]);
goangular.factory('$goUsersSync', [ '$parse', '$timeout', usersSyncFactory ]);
goangular.factory('$goUsers', [
'$goUsersSync',
'$goKey',
'$goConnection',
'$q',
usersFactory
]);
goangular.filter('keyFilter', keyFilter);