aboutsummaryrefslogtreecommitdiffstats
path: root/src/AngularPublic.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/AngularPublic.js')
-rw-r--r--src/AngularPublic.js29
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
+});
+