mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 15:40:22 +00:00
we now have two types of namespaces: - true namespace: angular.* - used for all global apis - virtual namespace: ng.*, ngMock.*, ... - used for all DI modules the virual namespaces have services under the second namespace level (e.g. ng.) and filters and directives prefixed with filter: and directive: respectively (e.g. ng.filter:orderBy, ng.directive:ngRepeat) this simplifies urls and makes them a lot shorter while still avoiding name collisions
16 lines
328 B
JavaScript
16 lines
328 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* @ngdoc object
|
|
* @name ng.$document
|
|
* @requires $window
|
|
*
|
|
* @description
|
|
* A {@link angular.element jQuery (lite)}-wrapped reference to the browser's `window.document`
|
|
* element.
|
|
*/
|
|
function $DocumentProvider(){
|
|
this.$get = ['$window', function(window){
|
|
return jqLite(window.document);
|
|
}];
|
|
}
|