repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ngAria/aria.js | src/ngAria/aria.js | 'use strict';
/**
* @ngdoc module
* @name ngAria
* @description
*
* The `ngAria` module provides support for common
* [<abbr title="Accessible Rich Internet Applications">ARIA</abbr>](http://www.w3.org/TR/wai-aria/)
* attributes that convey state or semantic information about the application for users
* of ass... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/locale.js | src/ng/locale.js | 'use strict';
/**
* @ngdoc service
* @name $locale
*
* @description
* $locale service provides localization rules for various AngularJS components. As of right now the
* only public api is:
*
* * `id` β `{string}` β locale id formatted as `languageId-countryId` (e.g. `en-us`)
*/
| javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/cacheFactory.js | src/ng/cacheFactory.js | 'use strict';
/**
* @ngdoc service
* @name $cacheFactory
* @this
*
* @description
* Factory that constructs {@link $cacheFactory.Cache Cache} objects and gives access to
* them.
*
* ```js
*
* var cache = $cacheFactory('cacheId');
* expect($cacheFactory.get('cacheId')).toBe(cache);
* expect($cacheFactor... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/cookieReader.js | src/ng/cookieReader.js | 'use strict';
/**
* @name $$cookieReader
* @requires $document
*
* @description
* This is a private service for reading cookies used by $http and ngCookies
*
* @return {Object} a key/value map of the current cookies
*/
function $$CookieReader($document) {
var rawDocument = $document[0] || {};
var lastCooki... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/compile.js | src/ng/compile.js | 'use strict';
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Any commits to this file should be reviewed with security in mind. *
* Changes to this file can potentially create security vulnerabilities. *
* An approval from 2 Core members with history of modifying ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/anchorScroll.js | src/ng/anchorScroll.js | 'use strict';
/**
* @ngdoc provider
* @name $anchorScrollProvider
* @this
*
* @description
* Use `$anchorScrollProvider` to disable automatic scrolling whenever
* {@link ng.$location#hash $location.hash()} changes.
*/
function $AnchorScrollProvider() {
var autoScrollingEnabled = true;
/**
* @ngdoc met... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/interval.js | src/ng/interval.js | 'use strict';
var $intervalMinErr = minErr('$interval');
/** @this */
function $IntervalProvider() {
this.$get = ['$$intervalFactory', '$window',
function($$intervalFactory, $window) {
var intervals = {};
var setIntervalFn = function(tick, delay, deferred) {
var id = $window.setInterval(tick,... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/rootElement.js | src/ng/rootElement.js | 'use strict';
/**
* @ngdoc service
* @name $rootElement
*
* @description
* The root element of AngularJS application. This is either the element where {@link
* ng.directive:ngApp ngApp} was declared or the element passed into
* {@link angular.bootstrap}. The element represents the root element of application. I... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/animateCss.js | src/ng/animateCss.js | 'use strict';
/* exported $CoreAnimateCssProvider */
/**
* @ngdoc service
* @name $animateCss
* @kind object
* @this
*
* @description
* This is the core version of `$animateCss`. By default, only when the `ngAnimate` is included,
* then the `$animateCss` service will actually perform animations.
*
* Click h... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/jsonpCallbacks.js | src/ng/jsonpCallbacks.js | 'use strict';
/**
* @ngdoc service
* @name $jsonpCallbacks
* @requires $window
* @description
* This service handles the lifecycle of callbacks to handle JSONP requests.
* Override this service if you wish to customise where the callbacks are stored and
* how they vary compared to the requested url.
*/
var $js... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/templateRequest.js | src/ng/templateRequest.js | 'use strict';
var $templateRequestMinErr = minErr('$templateRequest');
/**
* @ngdoc provider
* @name $templateRequestProvider
* @this
*
* @description
* Used to configure the options passed to the {@link $http} service when making a template request.
*
* For example, it can be used for specifying the "Accept"... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/filter.js | src/ng/filter.js | 'use strict';
/* global currencyFilter: true,
dateFilter: true,
filterFilter: true,
jsonFilter: true,
limitToFilter: true,
lowercaseFilter: true,
numberFilter: true,
orderByFilter: true,
uppercaseFilter: true,
*/
/**
* @ngdoc provider
* @name $filterProvider
* @description
*
* Filters are just functions... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/intervalFactory.js | src/ng/intervalFactory.js | 'use strict';
/** @this */
function $$IntervalFactoryProvider() {
this.$get = ['$browser', '$q', '$$q', '$rootScope',
function($browser, $q, $$q, $rootScope) {
return function intervalFactory(setIntervalFn, clearIntervalFn) {
return function intervalFn(fn, delay, count, invokeApply) {
... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/sce.js | src/ng/sce.js | 'use strict';
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Any commits to this file should be reviewed with security in mind. *
* Changes to this file can potentially create security vulnerabilities. *
* An approval from 2 Core members with history of modifying ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/browser.js | src/ng/browser.js | 'use strict';
/* global getHash: true, stripHash: false */
function getHash(url) {
var index = url.indexOf('#');
return index === -1 ? '' : url.substr(index);
}
function trimEmptyHash(url) {
return url.replace(/#$/, '');
}
/**
* ! This is a private undocumented service !
*
* @name $browser
* @requires $log... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/animate.js | src/ng/animate.js | 'use strict';
var $animateMinErr = minErr('$animate');
var ELEMENT_NODE = 1;
var NG_ANIMATE_CLASSNAME = 'ng-animate';
function mergeClasses(a,b) {
if (!a && !b) return '';
if (!a) return b;
if (!b) return a;
if (isArray(a)) a = a.join(' ');
if (isArray(b)) b = b.join(' ');
return a + ' ' + b;
}
function ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/animateRunner.js | src/ng/animateRunner.js | 'use strict';
var $$AnimateAsyncRunFactoryProvider = /** @this */ function() {
this.$get = ['$$rAF', function($$rAF) {
var waitQueue = [];
function waitForTick(fn) {
waitQueue.push(fn);
if (waitQueue.length > 1) return;
$$rAF(function() {
for (var i = 0; i < waitQueue.length; i++) ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/location.js | src/ng/location.js | 'use strict';
/* global stripHash: true */
var PATH_MATCH = /^([^?#]*)(\?([^#]*))?(#(.*))?$/,
DEFAULT_PORTS = {'http': 80, 'https': 443, 'ftp': 21};
var $locationMinErr = minErr('$location');
/**
* Encode path using encodeUriSegment, ignoring forward slashes
*
* @param {string} path Path to encode
* @returns... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/document.js | src/ng/document.js | 'use strict';
/**
* @ngdoc service
* @name $document
* @requires $window
* @this
*
* @description
* A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object.
*
* @example
<example module="documentExample" name="document">
<file name="index.html">
<div ng-con... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/forceReflow.js | src/ng/forceReflow.js | 'use strict';
var $$ForceReflowProvider = /** @this */ function() {
this.$get = ['$document', function($document) {
return function(domNode) {
//the line below will force the browser to perform a repaint so
//that all the animated elements within the animation frame will
//be properly updated a... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/raf.js | src/ng/raf.js | 'use strict';
/** @this */
function $$RAFProvider() { //rAF
this.$get = ['$window', '$timeout', function($window, $timeout) {
var requestAnimationFrame = $window.requestAnimationFrame ||
$window.webkitRequestAnimationFrame;
var cancelAnimationFrame = $window.cancelAnimationFr... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/http.js | src/ng/http.js | 'use strict';
var APPLICATION_JSON = 'application/json';
var CONTENT_TYPE_APPLICATION_JSON = {'Content-Type': APPLICATION_JSON + ';charset=utf-8'};
var JSON_START = /^\[|^\{(?!\{)/;
var JSON_ENDS = {
'[': /]$/,
'{': /}$/
};
var JSON_PROTECTION_PREFIX = /^\)]\}',?\n/;
var $httpMinErr = minErr('$http');
function se... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/parse.js | src/ng/parse.js | 'use strict';
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Any commits to this file should be reviewed with security in mind. *
* Changes to this file can potentially create security vulnerabilities. *
* An approval from 2 Core members with history of modifying ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/q.js | src/ng/q.js | 'use strict';
/**
* @ngdoc service
* @name $q
* @requires $rootScope
*
* @description
* A service that helps you run functions asynchronously, and use their return values (or exceptions)
* when they are done processing.
*
* This is a [Promises/A+](https://promisesaplus.com/)-compliant implementation of promis... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/sanitizeUri.js | src/ng/sanitizeUri.js | 'use strict';
/**
* @this
* @description
* Private service to sanitize uris for links and images. Used by $compile and $sanitize.
*/
function $$SanitizeUriProvider() {
var aHrefSanitizationTrustedUrlList = /^\s*(https?|s?ftp|mailto|tel|file):/,
imgSrcSanitizationTrustedUrlList = /^\s*((https?|ftp|file|blob)... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/window.js | src/ng/window.js | 'use strict';
/**
* @ngdoc service
* @name $window
* @this
*
* @description
* A reference to the browser's `window` object. While `window`
* is globally available in JavaScript, it causes testability problems, because
* it is a global variable. In AngularJS we always refer to it through the
* `$window` servic... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/controller.js | src/ng/controller.js | 'use strict';
var $controllerMinErr = minErr('$controller');
var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/;
function identifierForController(controller, ident) {
if (ident && isString(ident)) return ident;
if (isString(controller)) {
var match = CNTRL_REG.exec(controller);
if (match) return match[3];
}
... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/sniffer.js | src/ng/sniffer.js | 'use strict';
/* exported $SnifferProvider */
/**
* !!! This is an undocumented "private" service !!!
*
* @name $sniffer
* @requires $window
* @requires $document
* @this
*
* @property {boolean} history Does the browser support html5 history api ?
* @property {boolean} transitions Does the browser support CS... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/interpolate.js | src/ng/interpolate.js | 'use strict';
var $interpolateMinErr = angular.$interpolateMinErr = minErr('$interpolate');
$interpolateMinErr.throwNoconcat = function(text) {
throw $interpolateMinErr('noconcat',
'Error while interpolating: {0}\nStrict Contextual Escaping disallows ' +
'interpolations that concatenate multiple expressi... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/rootScope.js | src/ng/rootScope.js | 'use strict';
/**
* DESIGN NOTES
*
* The design decisions behind the scope are heavily favored for speed and memory consumption.
*
* The typical use of scope is to watch the expressions, which most of the time return the same
* value as last time so we optimize the operation.
*
* Closures construction is expen... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/taskTrackerFactory.js | src/ng/taskTrackerFactory.js | 'use strict';
/**
* ! This is a private undocumented service !
*
* @name $$taskTrackerFactory
* @description
* A function to create `TaskTracker` instances.
*
* A `TaskTracker` can keep track of pending tasks (grouped by type) and can notify interested
* parties when all pending tasks (or tasks of a specific t... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/testability.js | src/ng/testability.js | 'use strict';
/** @this */
function $$TestabilityProvider() {
this.$get = ['$rootScope', '$browser', '$location',
function($rootScope, $browser, $location) {
/**
* @name $testability
*
* @description
* The private $$testability service provides a collection of methods for use when... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/exceptionHandler.js | src/ng/exceptionHandler.js | 'use strict';
/**
* @ngdoc service
* @name $exceptionHandler
* @requires ng.$log
* @this
*
* @description
* Any uncaught exception in AngularJS expressions is delegated to this service.
* The default implementation simply delegates to `$log.error` which logs it into
* the browser console.
*
* In unit tests,... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/httpBackend.js | src/ng/httpBackend.js | 'use strict';
/**
* @ngdoc service
* @name $xhrFactory
* @this
*
* @description
* Factory function used to create XMLHttpRequest objects.
*
* Replace or decorate this service to create your own custom XMLHttpRequest objects.
*
* ```
* angular.module('myApp', [])
* .factory('$xhrFactory', function() {
* ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/timeout.js | src/ng/timeout.js | 'use strict';
var $timeoutMinErr = minErr('$timeout');
/** @this */
function $TimeoutProvider() {
this.$get = ['$rootScope', '$browser', '$q', '$$q', '$exceptionHandler',
function($rootScope, $browser, $q, $$q, $exceptionHandler) {
var deferreds = {};
/**
* @ngdoc service
* @name... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/log.js | src/ng/log.js | 'use strict';
/**
* @ngdoc service
* @name $log
* @requires $window
*
* @description
* Simple service for logging. Default implementation safely writes the message
* into the browser's console (if present).
*
* The main purpose of this service is to simplify debugging and troubleshooting.
*
* To reveal the ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/urlUtils.js | src/ng/urlUtils.js | 'use strict';
// NOTE: The usage of window and document instead of $window and $document here is
// deliberate. This service depends on the specific behavior of anchor nodes created by the
// browser (resolving and parsing URLs) that is unlikely to be provided by mock objects and
// cause us to break tests. In addit... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/filter/orderBy.js | src/ng/filter/orderBy.js | 'use strict';
/**
* @ngdoc filter
* @name orderBy
* @kind function
*
* @description
* Returns an array containing the items from the specified `collection`, ordered by a `comparator`
* function based on the values computed using the `expression` predicate.
*
* For example, `[{id: 'foo'}, {id: 'bar'}] | orderB... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/filter/filter.js | src/ng/filter/filter.js | 'use strict';
/**
* @ngdoc filter
* @name filter
* @kind function
*
* @description
* Selects a subset of items from `array` and returns it as a new array.
*
* @param {Array} array The source array.
* <div class="alert alert-info">
* **Note**: If the array contains objects that reference themselves, filteri... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/filter/filters.js | src/ng/filter/filters.js | 'use strict';
var MAX_DIGITS = 22;
var DECIMAL_SEP = '.';
var ZERO_CHAR = '0';
/**
* @ngdoc filter
* @name currency
* @kind function
*
* @description
* Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default
* symbol for current locale is used.
*
* @param {number} amount I... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/filter/limitTo.js | src/ng/filter/limitTo.js | 'use strict';
/**
* @ngdoc filter
* @name limitTo
* @kind function
*
* @description
* Creates a new array or string containing only a specified number of elements. The elements are
* taken from either the beginning or the end of the source array, string or number, as specified by
* the value and sign (positive... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngModelOptions.js | src/ng/directive/ngModelOptions.js | 'use strict';
/* exported defaultModelOptions */
var defaultModelOptions;
var DEFAULT_REGEXP = /(\s+|^)default(\s+|$)/;
/**
* @ngdoc type
* @name ModelOptions
* @description
* A container for the options set by the {@link ngModelOptions} directive
*/
function ModelOptions(options) {
this.$$options = options;
}... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngCsp.js | src/ng/directive/ngCsp.js | 'use strict';
/**
* @ngdoc directive
* @name ngCsp
*
* @restrict A
* @element ANY
* @description
*
* AngularJS has some features that can conflict with certain restrictions that are applied when using
* [CSP (Content Security Policy)](https://developer.mozilla.org/en/Security/CSP) rules.
*
* If you intend t... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/form.js | src/ng/directive/form.js | 'use strict';
/* global -nullFormCtrl, -PENDING_CLASS, -SUBMITTED_CLASS
*/
var nullFormCtrl = {
$addControl: noop,
$getControls: valueFn([]),
$$renameControl: nullFormRenameControl,
$removeControl: noop,
$setValidity: noop,
$setDirty: noop,
$setPristine: noop,
$setSubmitted: noop,
$$setSubmitted: no... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngShowHide.js | src/ng/directive/ngShowHide.js | 'use strict';
var NG_HIDE_CLASS = 'ng-hide';
var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate';
/**
* @ngdoc directive
* @name ngShow
* @multiElement
*
* @description
* The `ngShow` directive shows or hides the given HTML element based on the expression provided to
* the `ngShow` attribute.
*
* The element is... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/select.js | src/ng/directive/select.js | 'use strict';
/* exported selectDirective, optionDirective */
var noopNgModelController = { $setViewValue: noop, $render: noop };
function setOptionSelectedStatus(optionEl, value) {
optionEl.prop('selected', value);
/**
* When unselecting an option, setting the property to null / false should be enough
* H... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngClass.js | src/ng/directive/ngClass.js | 'use strict';
/* exported
ngClassDirective,
ngClassEvenDirective,
ngClassOddDirective
*/
function classDirective(name, selector) {
name = 'ngClass' + name;
var indexWatchExpression;
return ['$parse', function($parse) {
return {
restrict: 'AC',
link: function(scope, element, attr) {
... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngChange.js | src/ng/directive/ngChange.js | 'use strict';
/**
* @ngdoc directive
* @name ngChange
* @restrict A
*
* @description
* Evaluate the given expression when the user changes the input.
* The expression is evaluated immediately, unlike the JavaScript onchange event
* which only triggers at the end of a change (usually, when the user leaves the
... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngIf.js | src/ng/directive/ngIf.js | 'use strict';
/**
* @ngdoc directive
* @name ngIf
* @restrict A
* @multiElement
*
* @description
* The `ngIf` directive removes or recreates a portion of the DOM tree based on an
* {expression}. If the expression assigned to `ngIf` evaluates to a false
* value then the element is removed from the DOM, otherwi... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/input.js | src/ng/directive/input.js | 'use strict';
/* global
VALID_CLASS: false,
INVALID_CLASS: false,
PRISTINE_CLASS: false,
DIRTY_CLASS: false,
ngModelMinErr: false
*/
// Regex code was initially obtained from SO prior to modification: https://stackoverflow.com/questions/3143070/javascript-regex-iso-datetime#answer-3143231
var ISO_DATE_REGEX... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngBind.js | src/ng/directive/ngBind.js | 'use strict';
/**
* @ngdoc directive
* @name ngBind
* @restrict AC
*
* @description
* The `ngBind` attribute tells AngularJS to replace the text content of the specified HTML element
* with the value of a given expression, and to update the text content when the value of that
* expression changes.
*
* Typica... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngController.js | src/ng/directive/ngController.js | 'use strict';
/**
* @ngdoc directive
* @name ngController
*
* @description
* The `ngController` directive attaches a controller class to the view. This is a key aspect of how angular
* supports the principles behind the Model-View-Controller design pattern.
*
* MVC components in angular:
*
* * Model β Models... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngRepeat.js | src/ng/directive/ngRepeat.js | 'use strict';
/* exported ngRepeatDirective */
/**
* @ngdoc directive
* @name ngRepeat
* @multiElement
* @restrict A
*
* @description
* The `ngRepeat` directive instantiates a template once per item from a collection. Each template
* instance gets its own scope, where the given loop variable is set to the cur... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngStyle.js | src/ng/directive/ngStyle.js | 'use strict';
/**
* @ngdoc directive
* @name ngStyle
* @restrict AC
*
* @description
* The `ngStyle` directive allows you to set CSS style on an HTML element conditionally.
*
* @knownIssue
* You should not use {@link guide/interpolation interpolation} in the value of the `style`
* attribute, when using the `... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngOptions.js | src/ng/directive/ngOptions.js | 'use strict';
/* exported ngOptionsDirective */
/* global jqLiteRemove */
var ngOptionsMinErr = minErr('ngOptions');
/**
* @ngdoc directive
* @name ngOptions
* @restrict A
*
* @description
*
* The `ngOptions` attribute can be used to dynamically generate a list of `<option>`
* elements for the `<select>` el... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngTransclude.js | src/ng/directive/ngTransclude.js | 'use strict';
/**
* @ngdoc directive
* @name ngTransclude
* @restrict EAC
*
* @description
* Directive that marks the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion.
*
* You can specify that you want to insert a named transclusion slot, instead of the default slo... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngInclude.js | src/ng/directive/ngInclude.js | 'use strict';
/**
* @ngdoc directive
* @name ngInclude
* @restrict ECA
* @scope
* @priority -400
*
* @description
* Fetches, compiles and includes an external HTML fragment.
*
* By default, the template URL is restricted to the same domain and protocol as the
* application document. This is done by calling ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/script.js | src/ng/directive/script.js | 'use strict';
/**
* @ngdoc directive
* @name script
* @restrict E
*
* @description
* Load the content of a `<script>` element into {@link ng.$templateCache `$templateCache`}, so that the
* template can be used by {@link ng.directive:ngInclude `ngInclude`},
* {@link ngRoute.directive:ngView `ngView`}, or {@link... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/validators.js | src/ng/directive/validators.js | 'use strict';
/**
* @ngdoc directive
* @name ngRequired
* @restrict A
*
* @param {expression} ngRequired AngularJS expression. If it evaluates to `true`, it sets the
* `required` attribute to the element and adds the `required`
* {@link ngModel.NgMode... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngList.js | src/ng/directive/ngList.js | 'use strict';
/**
* @ngdoc directive
* @name ngList
* @restrict A
* @priority 100
*
* @param {string=} ngList optional delimiter that should be used to split the value.
*
* @description
* Text input that converts between a delimited string and an array of strings. The default
* delimiter is a comma followed... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngEventDirs.js | src/ng/directive/ngEventDirs.js | 'use strict';
/**
* @ngdoc directive
* @name ngClick
* @restrict A
* @element ANY
* @priority 0
*
* @description
* The ngClick directive allows you to specify custom behavior when
* an element is clicked.
*
* @param {expression} ngClick {@link guide/expression Expression} to evaluate upon
* click. ({@link ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngPluralize.js | src/ng/directive/ngPluralize.js | 'use strict';
/**
* @ngdoc directive
* @name ngPluralize
* @restrict EA
*
* @description
* `ngPluralize` is a directive that displays messages according to en-US localization rules.
* These rules are bundled with angular.js, but can be overridden
* (see {@link guide/i18n AngularJS i18n} dev guide). You configu... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngModel.js | src/ng/directive/ngModel.js | 'use strict';
/* global VALID_CLASS: true,
INVALID_CLASS: true,
PRISTINE_CLASS: true,
DIRTY_CLASS: true,
UNTOUCHED_CLASS: true,
TOUCHED_CLASS: true,
PENDING_CLASS: true,
addSetValidityMethod: true,
setupValidity: true,
defaultModelOptions: false
*/
var VALID_CLASS = 'ng-valid',
INVALID_CLASS = ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngCloak.js | src/ng/directive/ngCloak.js | 'use strict';
/**
* @ngdoc directive
* @name ngCloak
* @restrict AC
*
* @description
* The `ngCloak` directive is used to prevent the AngularJS html template from being briefly
* displayed by the browser in its raw (uncompiled) form while your application is loading. Use this
* directive to avoid the undesirab... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngNonBindable.js | src/ng/directive/ngNonBindable.js | 'use strict';
/**
* @ngdoc directive
* @name ngNonBindable
* @restrict AC
* @priority 1000
* @element ANY
*
* @description
* The `ngNonBindable` directive tells AngularJS not to compile or bind the contents of the current
* DOM element, including directives on the element itself that have a lower priority tha... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngInit.js | src/ng/directive/ngInit.js | 'use strict';
/**
* @ngdoc directive
* @name ngInit
* @restrict AC
* @priority 450
* @element ANY
*
* @param {expression} ngInit {@link guide/expression Expression} to eval.
*
* @description
* The `ngInit` directive allows you to evaluate an expression in the
* current scope.
*
* <div class="alert alert-d... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/directives.js | src/ng/directive/directives.js | 'use strict';
function ngDirective(directive) {
if (isFunction(directive)) {
directive = {
link: directive
};
}
directive.restrict = directive.restrict || 'AC';
return valueFn(directive);
}
| javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/a.js | src/ng/directive/a.js | 'use strict';
/**
* @ngdoc directive
* @name a
* @restrict E
*
* @description
* Modifies the default behavior of the html a tag so that the default action is prevented when
* the href attribute is empty.
*
* For dynamically creating `href` attributes for a tags, see the {@link ng.ngHref `ngHref`} directive.
... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngRef.js | src/ng/directive/ngRef.js | 'use strict';
/**
* @ngdoc directive
* @name ngRef
* @restrict A
*
* @description
* The `ngRef` attribute tells AngularJS to assign the controller of a component (or a directive)
* to the given property in the current scope. It is also possible to add the jqlite-wrapped DOM
* element to the scope.
*
* If the... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/ngSwitch.js | src/ng/directive/ngSwitch.js | 'use strict';
/**
* @ngdoc directive
* @name ngSwitch
* @restrict EA
*
* @description
* The `ngSwitch` directive is used to conditionally swap DOM structure on your template based on a scope expression.
* Elements within `ngSwitch` but without `ngSwitchWhen` or `ngSwitchDefault` directives will be preserved at ... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ng/directive/attrs.js | src/ng/directive/attrs.js | 'use strict';
/**
* @ngdoc directive
* @name ngHref
* @restrict A
* @priority 99
*
* @description
* Using AngularJS markup like `{{hash}}` in an href attribute will
* make the link go to the wrong URL if the user clicks it before
* AngularJS has a chance to replace the `{{hash}}` markup with its
* value. Unt... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ngTouch/touch.js | src/ngTouch/touch.js | 'use strict';
/**
* @ngdoc module
* @name ngTouch
* @description
*
* The `ngTouch` module provides helpers for touch-enabled devices.
* The implementation is based on jQuery Mobile touch event handling
* ([jquerymobile.com](http://jquerymobile.com/)). *
*
* See {@link ngTouch.$swipe `$swipe`} for usage.
*
*... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ngTouch/swipe.js | src/ngTouch/swipe.js | 'use strict';
/* global ngTouch: false */
/**
* @ngdoc service
* @name $swipe
*
* @deprecated
* sinceVersion="1.7.0"
*
* See the {@link ngTouch module} documentation for more information.
*
* @description
* The `$swipe` service is a service that abstracts the mess... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ngTouch/directive/ngSwipe.js | src/ngTouch/directive/ngSwipe.js | 'use strict';
/* global ngTouch: false */
/**
* @ngdoc directive
* @name ngSwipeLeft
*
* @deprecated
* sinceVersion="1.7.0"
*
* See the {@link ngTouch module} documentation for more information.
*
* @description
* Specify custom behavior when an element is swiped to the left on a touchscreen device.
* A le... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ngComponentRouter/Router.js | src/ngComponentRouter/Router.js | /**
* @ngdoc module
* @name ngComponentRouter
* @deprecated
* In an effort to keep synchronized with router changes in the new Angular, this implementation of the Component Router (ngComponentRouter module)
* has been deprecated and will not receive further updates.
* We are investigating backporting the Router f... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ngMock/angular-mocks.js | src/ngMock/angular-mocks.js | 'use strict';
/* global routeToRegExp: false */
/**
* @ngdoc object
* @name angular.mock
* @description
*
* Namespace from 'angular-mocks.js' which contains testing related code.
*
*/
angular.mock = {};
/**
* ! This is a private undocumented service !
*
* @name $browser
*
* @description
* This service i... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ngMock/browserTrigger.js | src/ngMock/browserTrigger.js | 'use strict';
(function() {
/**
* @ngdoc function
* @name browserTrigger
* @description
*
* This is a global (window) function that is only available when the {@link ngMock} module is
* included.
*
* It can be used to trigger a native browser event on an element, which is useful for unit test... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ngCookies/cookies.js | src/ngCookies/cookies.js | 'use strict';
/**
* @ngdoc module
* @name ngCookies
* @description
*
* The `ngCookies` module provides a convenient wrapper for reading and writing browser cookies.
*
* See {@link ngCookies.$cookies `$cookies`} for usage.
*/
angular.module('ngCookies', ['ng']).
info({ angularVersion: '"NG_VERSION_FULL"' })... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ngCookies/cookieWriter.js | src/ngCookies/cookieWriter.js | 'use strict';
/**
* @name $$cookieWriter
* @requires $document
*
* @description
* This is a private service for writing cookies
*
* @param {string} name Cookie name
* @param {string=} value Cookie value (if undefined, cookie will be deleted)
* @param {Object=} options Object with options that need to be store... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ngMessageFormat/messageFormatParser.js | src/ngMessageFormat/messageFormatParser.js | 'use strict';
// NOTE: ADVANCED_OPTIMIZATIONS mode.
//
// This file is compiled with Closure compiler's ADVANCED_OPTIMIZATIONS flag! Be wary of using
// constructs incompatible with that mode.
/* global $interpolateMinErr: false */
/* global indexToLineAndColumn: false */
/* global InterpolationParts: false */
/* glo... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ngMessageFormat/messageFormatInterpolationParts.js | src/ngMessageFormat/messageFormatInterpolationParts.js | 'use strict';
// NOTE: ADVANCED_OPTIMIZATIONS mode.
//
// This file is compiled with Closure compiler's ADVANCED_OPTIMIZATIONS flag! Be wary of using
// constructs incompatible with that mode.
/* global $interpolateMinErr: false */
/* global isFunction: false */
/* global parseTextLiteral: false */
/**
* @construct... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ngMessageFormat/messageFormatCommon.js | src/ngMessageFormat/messageFormatCommon.js | 'use strict';
// NOTE: ADVANCED_OPTIMIZATIONS mode.
//
// This file is compiled with Closure compiler's ADVANCED_OPTIMIZATIONS flag! Be wary of using
// constructs incompatible with that mode.
/* global isFunction: false */
/* global noop: false */
/* global toJson: false */
/* global $$stringify: false */
// Conver... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ngMessageFormat/messageFormatService.js | src/ngMessageFormat/messageFormatService.js | 'use strict';
// NOTE: ADVANCED_OPTIMIZATIONS mode.
//
// This file is compiled with Closure compiler's ADVANCED_OPTIMIZATIONS flag! Be wary of using
// constructs incompatible with that mode.
/* global $interpolateMinErr: true */
/* global isFunction: true */
/* global noop: true */
/* global toJson: true */
/* glob... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ngMessageFormat/messageFormatSelector.js | src/ngMessageFormat/messageFormatSelector.js | 'use strict';
// NOTE: ADVANCED_OPTIMIZATIONS mode.
//
// This file is compiled with Closure compiler's ADVANCED_OPTIMIZATIONS flag! Be wary of using
// constructs incompatible with that mode.
/* global $interpolateMinErr: false */
/* global isFunction: false */
/* global noop: false */
/**
* @constructor
* @priva... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/ngMessages/messages.js | src/ngMessages/messages.js | 'use strict';
var forEach;
var isArray;
var isString;
var jqLite;
/**
* @ngdoc module
* @name ngMessages
* @description
*
* The `ngMessages` module provides enhanced support for displaying messages within templates
* (typically within forms or when rendering message objects that return key/value data).
* Inste... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/src/auto/injector.js | src/auto/injector.js | 'use strict';
/**
* @ngdoc function
* @module ng
* @name angular.injector
* @kind function
*
* @description
* Creates an injector object that can be used for retrieving services as well as for
* dependency injection (see {@link guide/di dependency injection}).
*
* @param {Array.<string|Function>} modules A l... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/AngularSpec.js | test/AngularSpec.js | 'use strict';
// Lots of typed array globals are used in this file and ESLint is
// not smart enough to understand the `typeof !== 'undefined'` guards.
/* globals Blob, Uint8ClampedArray, Uint16Array, Uint32Array, Int8Array, Int16Array, Int32Array,
Float32Array, Float64Array, */
describe('angular', function() {
va... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/minErrSpec.js | test/minErrSpec.js | 'use strict';
describe('errors', function() {
var originalObjectMaxDepthInErrorMessage = minErrConfig.objectMaxDepth;
var originalUrlErrorParamsEnabled = minErrConfig.urlErrorParamsEnabled;
afterEach(function() {
minErrConfig.objectMaxDepth = originalObjectMaxDepthInErrorMessage;
minErrConfig.urlErrorP... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/jQueryPatchSpec.js | test/jQueryPatchSpec.js | /* global $: false */
'use strict';
if (window.jQuery) {
describe('jQuery patch', function() {
var doc = null;
var divSpy = null;
var spy1 = null;
var spy2 = null;
beforeEach(function() {
divSpy = jasmine.createSpy('div.$destroy');
spy1 = jasmine.createSpy('span1.$destroy');
... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/jqLiteSpec.js | test/jqLiteSpec.js | 'use strict';
describe('jqLite', function() {
var scope, a, b, c, document;
// Checks if jQuery 2.1 is used.
function isJQuery21() {
if (_jqLiteMode) return false;
var jQueryVersionParts = _jQuery.fn.jquery.split('.');
return jQueryVersionParts[0] + '.' + jQueryVersionParts[1] === '2.1';
}
// C... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ApiSpecs.js | test/ApiSpecs.js | 'use strict';
describe('api', function() {
describe('hashKey()', function() {
it('should use an existing `$$hashKey`', function() {
var obj = {$$hashKey: 'foo'};
expect(hashKey(obj)).toBe('foo');
});
it('should support a function as `$$hashKey` (and call it)', function() {
var obj = {$... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/BinderSpec.js | test/BinderSpec.js | 'use strict';
describe('Binder', function() {
var element;
function childNode(element, index) {
return jqLite(element[0].childNodes[index]);
}
beforeEach(function() {
this.compileToHtml = function(content) {
var html;
inject(function($rootScope, $compile) {
content = jqLite(conte... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/stringifySpec.js | test/stringifySpec.js | 'use strict';
describe('toDebugString', function() {
it('should convert its argument to a string', function() {
expect(toDebugString('string')).toEqual('string');
expect(toDebugString(123)).toEqual('123');
expect(toDebugString({a:{b:'c'}})).toEqual('{"a":{"b":"c"}}');
expect(toDebugString(function fn... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/jquery_alias.js | test/jquery_alias.js | /* global _jQuery: true, _jqLiteMode: true */
'use strict';
var _jQuery = jQuery,
_jqLiteMode = false;
| javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/jquery_remove.js | test/jquery_remove.js | /* global _jQuery: true, _jqLiteMode: true */
'use strict';
var _jQuery = jQuery.noConflict(true),
_jqLiteMode = true;
| javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/loaderSpec.js | test/loaderSpec.js | 'use strict';
describe('module loader', function() {
var window;
beforeEach(function() {
window = {};
setupModuleLoader(window);
});
it('should set up namespace', function() {
expect(window.angular).toBeDefined();
expect(window.angular.module).toBeDefined();
});
it('should not override... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngAnimate/animateCacheSpec.js | test/ngAnimate/animateCacheSpec.js | 'use strict';
describe('ngAnimate $$animateCache', function() {
beforeEach(module('ngAnimate'));
it('should store the details in a lookup', inject(function($$animateCache) {
var data = { 'hello': 'there' };
$$animateCache.put('key', data, true);
expect($$animateCache.get('key')).toBe(data);
}));
... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngAnimate/animateJsDriverSpec.js | test/ngAnimate/animateJsDriverSpec.js | 'use strict';
describe('ngAnimate $$animateJsDriver', function() {
beforeEach(module('ngAnimate'));
beforeEach(module('ngAnimateMock'));
it('should register the $$animateJsDriver into the list of drivers found in $animateProvider',
module(function($animateProvider) {
expect($animateProvider.drivers).t... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngAnimate/rafSchedulerSpec.js | test/ngAnimate/rafSchedulerSpec.js | 'use strict';
describe('$$rAFScheduler', function() {
beforeEach(module('ngAnimate'));
it('should accept an array of tasks and run the first task immediately',
inject(function($$rAFScheduler) {
var taskSpy = jasmine.createSpy();
var tasks = [taskSpy];
$$rAFScheduler([tasks]);
expect(taskSpy)... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | false |
angular/angular.js | https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngAnimate/animationSpec.js | test/ngAnimate/animationSpec.js | 'use strict';
describe('$$animation', function() {
beforeEach(module('ngAnimate'));
beforeEach(module('ngAnimateMock'));
var element;
afterEach(function() {
dealoc(element);
});
beforeEach(module(function($$animationProvider) {
$$animationProvider.drivers.length = 0;
}));
it('should not run... | javascript | MIT | d8f77817eb5c98dec5317bc3756d1ea1812bcfbe | 2026-01-04T14:56:54.449246Z | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.