diff options
Diffstat (limited to 'src/AngularPublic.js')
| -rw-r--r-- | src/AngularPublic.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/AngularPublic.js b/src/AngularPublic.js new file mode 100644 index 00000000..7230c3e5 --- /dev/null +++ b/src/AngularPublic.js @@ -0,0 +1,29 @@ +var browserSingleton; +angularService('$browser', function browserFactory(){ + if (!browserSingleton) { + browserSingleton = new Browser(window.location, window.document); + browserSingleton.startUrlWatcher(); + browserSingleton.bind(); + } + return browserSingleton; +}); + +extend(angular, { + 'element': jqLite, + 'compile': compile, + 'scope': createScope, + 'copy': copy, + 'extend': extend, + 'foreach': foreach, + 'noop':noop, + 'bind':bind, + 'identity':identity, + 'isUndefined': isUndefined, + 'isDefined': isDefined, + 'isString': isString, + 'isFunction': isFunction, + 'isObject': isObject, + 'isNumber': isNumber, + 'isArray': isArray +}); + |
