2014-06-23 23:17:31 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
var angularFiles = {
|
2011-08-15 16:17:12 -07:00
|
|
|
'angularSrc': [
|
2013-06-07 18:24:30 -07:00
|
|
|
'src/minErr.js',
|
2011-08-15 16:17:12 -07:00
|
|
|
'src/Angular.js',
|
2012-01-06 18:10:47 -08:00
|
|
|
'src/loader.js',
|
2016-06-09 23:56:25 +03:00
|
|
|
'src/shallowCopy.js',
|
2014-11-17 07:07:43 +00:00
|
|
|
'src/stringify.js',
|
2011-11-14 15:08:21 -08:00
|
|
|
'src/AngularPublic.js',
|
2011-08-15 16:17:12 -07:00
|
|
|
'src/jqLite.js',
|
|
|
|
|
'src/apis.js',
|
2012-03-23 14:03:24 -07:00
|
|
|
|
|
|
|
|
'src/auto/injector.js',
|
|
|
|
|
|
|
|
|
|
'src/ng/anchorScroll.js',
|
feat(ngAnimate): complete rewrite of animations
- ngAnimate directive is gone and was replaced with class based animations/transitions
- support for triggering animations on css class additions and removals
- done callback was added to all animation apis
- $animation and $animator where merged into a single $animate service with api:
- $animate.enter(element, parent, after, done);
- $animate.leave(element, done);
- $animate.move(element, parent, after, done);
- $animate.addClass(element, className, done);
- $animate.removeClass(element, className, done);
BREAKING CHANGE: too many things changed, we'll write up a separate doc with migration instructions
2013-06-18 13:59:57 -04:00
|
|
|
'src/ng/animate.js',
|
2015-11-19 11:01:14 -08:00
|
|
|
'src/ng/animateRunner.js',
|
2015-08-12 15:21:40 -07:00
|
|
|
'src/ng/animateCss.js',
|
2012-03-23 14:03:24 -07:00
|
|
|
'src/ng/browser.js',
|
|
|
|
|
'src/ng/cacheFactory.js',
|
2012-05-02 14:32:27 -07:00
|
|
|
'src/ng/compile.js',
|
2012-03-23 14:03:24 -07:00
|
|
|
'src/ng/controller.js',
|
|
|
|
|
'src/ng/document.js',
|
|
|
|
|
'src/ng/exceptionHandler.js',
|
2015-07-16 16:06:50 -07:00
|
|
|
'src/ng/forceReflow.js',
|
feat($sce): new $sce service for Strict Contextual Escaping.
$sce is a service that provides Strict Contextual Escaping services to AngularJS.
Strict Contextual Escaping
--------------------------
Strict Contextual Escaping (SCE) is a mode in which AngularJS requires
bindings in certain contexts to result in a value that is marked as safe
to use for that context One example of such a context is binding
arbitrary html controlled by the user via ng-bind-html-unsafe. We
refer to these contexts as privileged or SCE contexts.
As of version 1.2, Angular ships with SCE enabled by default.
Note: When enabled (the default), IE8 in quirks mode is not supported.
In this mode, IE8 allows one to execute arbitrary javascript by the use
of the expression() syntax. Refer
http://blogs.msdn.com/b/ie/archive/2008/10/16/ending-expressions.aspx
to learn more about them. You can ensure your document is in standards
mode and not quirks mode by adding <!doctype html> to the top of your
HTML document.
SCE assists in writing code in way that (a) is secure by default and (b)
makes auditing for security vulnerabilities such as XSS, clickjacking,
etc. a lot easier.
Here's an example of a binding in a privileged context:
<input ng-model="userHtml">
<div ng-bind-html-unsafe="{{userHtml}}">
Notice that ng-bind-html-unsafe is bound to {{userHtml}} controlled by
the user. With SCE disabled, this application allows the user to render
arbitrary HTML into the DIV. In a more realistic example, one may be
rendering user comments, blog articles, etc. via bindings. (HTML is
just one example of a context where rendering user controlled input
creates security vulnerabilities.)
For the case of HTML, you might use a library, either on the client side, or on the server side,
to sanitize unsafe HTML before binding to the value and rendering it in the document.
How would you ensure that every place that used these types of bindings was bound to a value that
was sanitized by your library (or returned as safe for rendering by your server?) How can you
ensure that you didn't accidentally delete the line that sanitized the value, or renamed some
properties/fields and forgot to update the binding to the sanitized value?
To be secure by default, you want to ensure that any such bindings are disallowed unless you can
determine that something explicitly says it's safe to use a value for binding in that
context. You can then audit your code (a simple grep would do) to ensure that this is only done
for those values that you can easily tell are safe - because they were received from your server,
sanitized by your library, etc. You can organize your codebase to help with this - perhaps
allowing only the files in a specific directory to do this. Ensuring that the internal API
exposed by that code doesn't markup arbitrary values as safe then becomes a more manageable task.
In the case of AngularJS' SCE service, one uses $sce.trustAs (and
shorthand methods such as $sce.trustAsHtml, etc.) to obtain values that
will be accepted by SCE / privileged contexts.
In privileged contexts, directives and code will bind to the result of
$sce.getTrusted(context, value) rather than to the value directly.
Directives use $sce.parseAs rather than $parse to watch attribute
bindings, which performs the $sce.getTrusted behind the scenes on
non-constant literals.
As an example, ngBindHtmlUnsafe uses $sce.parseAsHtml(binding
expression). Here's the actual code (slightly simplified):
var ngBindHtmlUnsafeDirective = ['$sce', function($sce) {
return function(scope, element, attr) {
scope.$watch($sce.parseAsHtml(attr.ngBindHtmlUnsafe), function(value) {
element.html(value || '');
});
};
}];
Impact on loading templates
---------------------------
This applies both to the ng-include directive as well as templateUrl's
specified by directives.
By default, Angular only loads templates from the same domain and
protocol as the application document. This is done by calling
$sce.getTrustedResourceUrl on the template URL. To load templates from
other domains and/or protocols, you may either either whitelist them or
wrap it into a trusted value.
*Please note*:
The browser's Same Origin Policy and Cross-Origin Resource Sharing
(CORS) policy apply in addition to this and may further restrict whether
the template is successfully loaded. This means that without the right
CORS policy, loading templates from a different domain won't work on all
browsers. Also, loading templates from file:// URL does not work on
some browsers.
This feels like too much overhead for the developer?
----------------------------------------------------
It's important to remember that SCE only applies to interpolation expressions.
If your expressions are constant literals, they're automatically trusted
and you don't need to call $sce.trustAs on them.
e.g. <div ng-html-bind-unsafe="'<b>implicitly trusted</b>'"></div> just works.
Additionally, a[href] and img[src] automatically sanitize their URLs and
do not pass them through $sce.getTrusted. SCE doesn't play a role here.
The included $sceDelegate comes with sane defaults to allow you to load
templates in ng-include from your application's domain without having to
even know about SCE. It blocks loading templates from other domains or
loading templates over http from an https served document. You can
change these by setting your own custom whitelists and blacklists for
matching such URLs.
This significantly reduces the overhead. It is far easier to pay the
small overhead and have an application that's secure and can be audited
to verify that with much more ease than bolting security onto an
application later.
2013-05-14 14:51:39 -07:00
|
|
|
'src/ng/http.js',
|
|
|
|
|
'src/ng/httpBackend.js',
|
2012-03-23 14:03:24 -07:00
|
|
|
'src/ng/interpolate.js',
|
2013-09-13 12:47:05 -07:00
|
|
|
'src/ng/interval.js',
|
2018-06-26 20:45:44 +03:00
|
|
|
'src/ng/intervalFactory.js',
|
2016-06-17 20:23:02 +01:00
|
|
|
'src/ng/jsonpCallbacks.js',
|
2015-07-27 21:55:15 +01:00
|
|
|
'src/ng/locale.js',
|
2012-03-23 14:03:24 -07:00
|
|
|
'src/ng/location.js',
|
|
|
|
|
'src/ng/log.js',
|
|
|
|
|
'src/ng/parse.js',
|
|
|
|
|
'src/ng/q.js',
|
2014-02-24 18:14:29 -05:00
|
|
|
'src/ng/raf.js',
|
2012-03-23 14:03:24 -07:00
|
|
|
'src/ng/rootScope.js',
|
2015-12-17 14:53:15 +00:00
|
|
|
'src/ng/rootElement.js',
|
2013-11-25 15:40:18 -08:00
|
|
|
'src/ng/sanitizeUri.js',
|
feat($sce): new $sce service for Strict Contextual Escaping.
$sce is a service that provides Strict Contextual Escaping services to AngularJS.
Strict Contextual Escaping
--------------------------
Strict Contextual Escaping (SCE) is a mode in which AngularJS requires
bindings in certain contexts to result in a value that is marked as safe
to use for that context One example of such a context is binding
arbitrary html controlled by the user via ng-bind-html-unsafe. We
refer to these contexts as privileged or SCE contexts.
As of version 1.2, Angular ships with SCE enabled by default.
Note: When enabled (the default), IE8 in quirks mode is not supported.
In this mode, IE8 allows one to execute arbitrary javascript by the use
of the expression() syntax. Refer
http://blogs.msdn.com/b/ie/archive/2008/10/16/ending-expressions.aspx
to learn more about them. You can ensure your document is in standards
mode and not quirks mode by adding <!doctype html> to the top of your
HTML document.
SCE assists in writing code in way that (a) is secure by default and (b)
makes auditing for security vulnerabilities such as XSS, clickjacking,
etc. a lot easier.
Here's an example of a binding in a privileged context:
<input ng-model="userHtml">
<div ng-bind-html-unsafe="{{userHtml}}">
Notice that ng-bind-html-unsafe is bound to {{userHtml}} controlled by
the user. With SCE disabled, this application allows the user to render
arbitrary HTML into the DIV. In a more realistic example, one may be
rendering user comments, blog articles, etc. via bindings. (HTML is
just one example of a context where rendering user controlled input
creates security vulnerabilities.)
For the case of HTML, you might use a library, either on the client side, or on the server side,
to sanitize unsafe HTML before binding to the value and rendering it in the document.
How would you ensure that every place that used these types of bindings was bound to a value that
was sanitized by your library (or returned as safe for rendering by your server?) How can you
ensure that you didn't accidentally delete the line that sanitized the value, or renamed some
properties/fields and forgot to update the binding to the sanitized value?
To be secure by default, you want to ensure that any such bindings are disallowed unless you can
determine that something explicitly says it's safe to use a value for binding in that
context. You can then audit your code (a simple grep would do) to ensure that this is only done
for those values that you can easily tell are safe - because they were received from your server,
sanitized by your library, etc. You can organize your codebase to help with this - perhaps
allowing only the files in a specific directory to do this. Ensuring that the internal API
exposed by that code doesn't markup arbitrary values as safe then becomes a more manageable task.
In the case of AngularJS' SCE service, one uses $sce.trustAs (and
shorthand methods such as $sce.trustAsHtml, etc.) to obtain values that
will be accepted by SCE / privileged contexts.
In privileged contexts, directives and code will bind to the result of
$sce.getTrusted(context, value) rather than to the value directly.
Directives use $sce.parseAs rather than $parse to watch attribute
bindings, which performs the $sce.getTrusted behind the scenes on
non-constant literals.
As an example, ngBindHtmlUnsafe uses $sce.parseAsHtml(binding
expression). Here's the actual code (slightly simplified):
var ngBindHtmlUnsafeDirective = ['$sce', function($sce) {
return function(scope, element, attr) {
scope.$watch($sce.parseAsHtml(attr.ngBindHtmlUnsafe), function(value) {
element.html(value || '');
});
};
}];
Impact on loading templates
---------------------------
This applies both to the ng-include directive as well as templateUrl's
specified by directives.
By default, Angular only loads templates from the same domain and
protocol as the application document. This is done by calling
$sce.getTrustedResourceUrl on the template URL. To load templates from
other domains and/or protocols, you may either either whitelist them or
wrap it into a trusted value.
*Please note*:
The browser's Same Origin Policy and Cross-Origin Resource Sharing
(CORS) policy apply in addition to this and may further restrict whether
the template is successfully loaded. This means that without the right
CORS policy, loading templates from a different domain won't work on all
browsers. Also, loading templates from file:// URL does not work on
some browsers.
This feels like too much overhead for the developer?
----------------------------------------------------
It's important to remember that SCE only applies to interpolation expressions.
If your expressions are constant literals, they're automatically trusted
and you don't need to call $sce.trustAs on them.
e.g. <div ng-html-bind-unsafe="'<b>implicitly trusted</b>'"></div> just works.
Additionally, a[href] and img[src] automatically sanitize their URLs and
do not pass them through $sce.getTrusted. SCE doesn't play a role here.
The included $sceDelegate comes with sane defaults to allow you to load
templates in ng-include from your application's domain without having to
even know about SCE. It blocks loading templates from other domains or
loading templates over http from an https served document. You can
change these by setting your own custom whitelists and blacklists for
matching such URLs.
This significantly reduces the overhead. It is far easier to pay the
small overhead and have an application that's secure and can be audited
to verify that with much more ease than bolting security onto an
application later.
2013-05-14 14:51:39 -07:00
|
|
|
'src/ng/sce.js',
|
2012-03-23 14:03:24 -07:00
|
|
|
'src/ng/sniffer.js',
|
2018-06-27 00:22:49 +03:00
|
|
|
'src/ng/taskTrackerFactory.js',
|
2014-08-12 12:40:17 -04:00
|
|
|
'src/ng/templateRequest.js',
|
2014-06-09 22:20:47 -07:00
|
|
|
'src/ng/testability.js',
|
2012-05-22 23:05:26 -07:00
|
|
|
'src/ng/timeout.js',
|
2013-07-15 12:26:46 -07:00
|
|
|
'src/ng/urlUtils.js',
|
feat($sce): new $sce service for Strict Contextual Escaping.
$sce is a service that provides Strict Contextual Escaping services to AngularJS.
Strict Contextual Escaping
--------------------------
Strict Contextual Escaping (SCE) is a mode in which AngularJS requires
bindings in certain contexts to result in a value that is marked as safe
to use for that context One example of such a context is binding
arbitrary html controlled by the user via ng-bind-html-unsafe. We
refer to these contexts as privileged or SCE contexts.
As of version 1.2, Angular ships with SCE enabled by default.
Note: When enabled (the default), IE8 in quirks mode is not supported.
In this mode, IE8 allows one to execute arbitrary javascript by the use
of the expression() syntax. Refer
http://blogs.msdn.com/b/ie/archive/2008/10/16/ending-expressions.aspx
to learn more about them. You can ensure your document is in standards
mode and not quirks mode by adding <!doctype html> to the top of your
HTML document.
SCE assists in writing code in way that (a) is secure by default and (b)
makes auditing for security vulnerabilities such as XSS, clickjacking,
etc. a lot easier.
Here's an example of a binding in a privileged context:
<input ng-model="userHtml">
<div ng-bind-html-unsafe="{{userHtml}}">
Notice that ng-bind-html-unsafe is bound to {{userHtml}} controlled by
the user. With SCE disabled, this application allows the user to render
arbitrary HTML into the DIV. In a more realistic example, one may be
rendering user comments, blog articles, etc. via bindings. (HTML is
just one example of a context where rendering user controlled input
creates security vulnerabilities.)
For the case of HTML, you might use a library, either on the client side, or on the server side,
to sanitize unsafe HTML before binding to the value and rendering it in the document.
How would you ensure that every place that used these types of bindings was bound to a value that
was sanitized by your library (or returned as safe for rendering by your server?) How can you
ensure that you didn't accidentally delete the line that sanitized the value, or renamed some
properties/fields and forgot to update the binding to the sanitized value?
To be secure by default, you want to ensure that any such bindings are disallowed unless you can
determine that something explicitly says it's safe to use a value for binding in that
context. You can then audit your code (a simple grep would do) to ensure that this is only done
for those values that you can easily tell are safe - because they were received from your server,
sanitized by your library, etc. You can organize your codebase to help with this - perhaps
allowing only the files in a specific directory to do this. Ensuring that the internal API
exposed by that code doesn't markup arbitrary values as safe then becomes a more manageable task.
In the case of AngularJS' SCE service, one uses $sce.trustAs (and
shorthand methods such as $sce.trustAsHtml, etc.) to obtain values that
will be accepted by SCE / privileged contexts.
In privileged contexts, directives and code will bind to the result of
$sce.getTrusted(context, value) rather than to the value directly.
Directives use $sce.parseAs rather than $parse to watch attribute
bindings, which performs the $sce.getTrusted behind the scenes on
non-constant literals.
As an example, ngBindHtmlUnsafe uses $sce.parseAsHtml(binding
expression). Here's the actual code (slightly simplified):
var ngBindHtmlUnsafeDirective = ['$sce', function($sce) {
return function(scope, element, attr) {
scope.$watch($sce.parseAsHtml(attr.ngBindHtmlUnsafe), function(value) {
element.html(value || '');
});
};
}];
Impact on loading templates
---------------------------
This applies both to the ng-include directive as well as templateUrl's
specified by directives.
By default, Angular only loads templates from the same domain and
protocol as the application document. This is done by calling
$sce.getTrustedResourceUrl on the template URL. To load templates from
other domains and/or protocols, you may either either whitelist them or
wrap it into a trusted value.
*Please note*:
The browser's Same Origin Policy and Cross-Origin Resource Sharing
(CORS) policy apply in addition to this and may further restrict whether
the template is successfully loaded. This means that without the right
CORS policy, loading templates from a different domain won't work on all
browsers. Also, loading templates from file:// URL does not work on
some browsers.
This feels like too much overhead for the developer?
----------------------------------------------------
It's important to remember that SCE only applies to interpolation expressions.
If your expressions are constant literals, they're automatically trusted
and you don't need to call $sce.trustAs on them.
e.g. <div ng-html-bind-unsafe="'<b>implicitly trusted</b>'"></div> just works.
Additionally, a[href] and img[src] automatically sanitize their URLs and
do not pass them through $sce.getTrusted. SCE doesn't play a role here.
The included $sceDelegate comes with sane defaults to allow you to load
templates in ng-include from your application's domain without having to
even know about SCE. It blocks loading templates from other domains or
loading templates over http from an https served document. You can
change these by setting your own custom whitelists and blacklists for
matching such URLs.
This significantly reduces the overhead. It is far easier to pay the
small overhead and have an application that's secure and can be audited
to verify that with much more ease than bolting security onto an
application later.
2013-05-14 14:51:39 -07:00
|
|
|
'src/ng/window.js',
|
2015-03-02 13:24:30 +02:00
|
|
|
'src/ng/cookieReader.js',
|
2012-03-23 14:03:24 -07:00
|
|
|
|
|
|
|
|
'src/ng/filter.js',
|
|
|
|
|
'src/ng/filter/filter.js',
|
|
|
|
|
'src/ng/filter/filters.js',
|
|
|
|
|
'src/ng/filter/limitTo.js',
|
|
|
|
|
'src/ng/filter/orderBy.js',
|
|
|
|
|
|
|
|
|
|
'src/ng/directive/directives.js',
|
|
|
|
|
'src/ng/directive/a.js',
|
2014-06-09 14:51:35 -04:00
|
|
|
'src/ng/directive/attrs.js',
|
2012-03-23 14:03:24 -07:00
|
|
|
'src/ng/directive/form.js',
|
|
|
|
|
'src/ng/directive/input.js',
|
|
|
|
|
'src/ng/directive/ngBind.js',
|
2014-12-24 12:53:54 +00:00
|
|
|
'src/ng/directive/ngChange.js',
|
2012-03-23 14:03:24 -07:00
|
|
|
'src/ng/directive/ngClass.js',
|
|
|
|
|
'src/ng/directive/ngCloak.js',
|
|
|
|
|
'src/ng/directive/ngController.js',
|
2012-04-27 15:20:54 -07:00
|
|
|
'src/ng/directive/ngCsp.js',
|
2012-03-23 14:03:24 -07:00
|
|
|
'src/ng/directive/ngEventDirs.js',
|
2013-04-04 18:17:58 -07:00
|
|
|
'src/ng/directive/ngIf.js',
|
2012-03-23 14:03:24 -07:00
|
|
|
'src/ng/directive/ngInclude.js',
|
|
|
|
|
'src/ng/directive/ngInit.js',
|
2014-12-24 12:53:54 +00:00
|
|
|
'src/ng/directive/ngList.js',
|
|
|
|
|
'src/ng/directive/ngModel.js',
|
2016-11-16 11:36:24 +00:00
|
|
|
'src/ng/directive/ngModelOptions.js',
|
2012-03-23 14:03:24 -07:00
|
|
|
'src/ng/directive/ngNonBindable.js',
|
2015-01-10 21:28:32 +00:00
|
|
|
'src/ng/directive/ngOptions.js',
|
2012-03-23 14:03:24 -07:00
|
|
|
'src/ng/directive/ngPluralize.js',
|
2018-06-05 15:00:12 +02:00
|
|
|
'src/ng/directive/ngRef.js',
|
2012-03-23 14:03:24 -07:00
|
|
|
'src/ng/directive/ngRepeat.js',
|
|
|
|
|
'src/ng/directive/ngShowHide.js',
|
|
|
|
|
'src/ng/directive/ngStyle.js',
|
|
|
|
|
'src/ng/directive/ngSwitch.js',
|
|
|
|
|
'src/ng/directive/ngTransclude.js',
|
|
|
|
|
'src/ng/directive/script.js',
|
|
|
|
|
'src/ng/directive/select.js',
|
2015-07-29 17:06:35 +01:00
|
|
|
'src/ng/directive/validators.js',
|
2015-08-11 17:20:04 -07:00
|
|
|
'src/angular.bind.js',
|
2015-07-29 17:06:35 +01:00
|
|
|
'src/publishExternalApis.js',
|
|
|
|
|
'src/ngLocale/angular-locale_en-us.js'
|
2011-08-15 16:17:12 -07:00
|
|
|
],
|
|
|
|
|
|
2013-10-21 09:06:53 +01:00
|
|
|
'angularLoader': [
|
2015-12-15 11:46:50 -08:00
|
|
|
'src/stringify.js',
|
2013-11-14 14:37:53 -08:00
|
|
|
'src/minErr.js',
|
2013-10-21 09:06:53 +01:00
|
|
|
'src/loader.js'
|
2012-03-26 21:18:01 -07:00
|
|
|
],
|
|
|
|
|
|
2013-10-21 09:06:53 +01:00
|
|
|
'angularModules': {
|
|
|
|
|
'ngAnimate': [
|
feat($animate): complete refactor of internal animation code
All of ngAnimate has been rewritten to make the internals of the
animation code more flexible, reuseable and performant.
BREAKING CHANGE: JavaSript and CSS animations can no longer be run in
parallel. With earlier versions of ngAnimate, both CSS and JS animations
would be run together when multiple animations were detected. This
feature has now been removed, however, the same effect, with even more
possibilities, can be achieved by injecting `$animateCss` into a
JavaScript-defined animation and creating custom CSS-based animations
from there. Read the ngAnimate docs for more info.
BREAKING CHANGE: The function params for `$animate.enabled()` when an
element is used are now flipped. This fix allows the function to act as
a getter when a single element param is provided.
```js
// < 1.4
$animate.enabled(false, element);
// 1.4+
$animate.enabled(element, false);
```
BREAKING CHANGE: In addition to disabling the children of the element,
`$animate.enabled(element, false)` will now also disable animations on
the element itself.
BREAKING CHANGE: Animation-related callbacks are now fired on
`$animate.on` instead of directly being on the element.
```js
// < 1.4
element.on('$animate:before', function(e, data) {
if (data.event === 'enter') { ... }
});
element.off('$animate:before', fn);
// 1.4+
$animate.on(element, 'enter', function(data) {
//...
});
$animate.off(element, 'enter', fn);
```
BREAKING CHANGE: There is no need to call `$scope.$apply` or
`$scope.$digest` inside of a animation promise callback anymore
since the promise is resolved within a digest automatically (but a
digest is not run unless the promise is chained).
```js
// < 1.4
$animate.enter(element).then(function() {
$scope.$apply(function() {
$scope.explode = true;
});
});
// 1.4+
$animate.enter(element).then(function() {
$scope.explode = true;
});
```
BREAKING CHANGE: When an enter, leave or move animation is triggered then it
will always end any pending or active parent class based animations
(animations triggered via ngClass) in order to ensure that any CSS
styles are resolved in time.
2015-04-02 20:52:30 -07:00
|
|
|
'src/ngAnimate/shared.js',
|
2015-08-11 15:55:23 -07:00
|
|
|
'src/ngAnimate/rafScheduler.js',
|
feat($animate): complete refactor of internal animation code
All of ngAnimate has been rewritten to make the internals of the
animation code more flexible, reuseable and performant.
BREAKING CHANGE: JavaSript and CSS animations can no longer be run in
parallel. With earlier versions of ngAnimate, both CSS and JS animations
would be run together when multiple animations were detected. This
feature has now been removed, however, the same effect, with even more
possibilities, can be achieved by injecting `$animateCss` into a
JavaScript-defined animation and creating custom CSS-based animations
from there. Read the ngAnimate docs for more info.
BREAKING CHANGE: The function params for `$animate.enabled()` when an
element is used are now flipped. This fix allows the function to act as
a getter when a single element param is provided.
```js
// < 1.4
$animate.enabled(false, element);
// 1.4+
$animate.enabled(element, false);
```
BREAKING CHANGE: In addition to disabling the children of the element,
`$animate.enabled(element, false)` will now also disable animations on
the element itself.
BREAKING CHANGE: Animation-related callbacks are now fired on
`$animate.on` instead of directly being on the element.
```js
// < 1.4
element.on('$animate:before', function(e, data) {
if (data.event === 'enter') { ... }
});
element.off('$animate:before', fn);
// 1.4+
$animate.on(element, 'enter', function(data) {
//...
});
$animate.off(element, 'enter', fn);
```
BREAKING CHANGE: There is no need to call `$scope.$apply` or
`$scope.$digest` inside of a animation promise callback anymore
since the promise is resolved within a digest automatically (but a
digest is not run unless the promise is chained).
```js
// < 1.4
$animate.enter(element).then(function() {
$scope.$apply(function() {
$scope.explode = true;
});
});
// 1.4+
$animate.enter(element).then(function() {
$scope.explode = true;
});
```
BREAKING CHANGE: When an enter, leave or move animation is triggered then it
will always end any pending or active parent class based animations
(animations triggered via ngClass) in order to ensure that any CSS
styles are resolved in time.
2015-04-02 20:52:30 -07:00
|
|
|
'src/ngAnimate/animateChildrenDirective.js',
|
|
|
|
|
'src/ngAnimate/animateCss.js',
|
|
|
|
|
'src/ngAnimate/animateCssDriver.js',
|
|
|
|
|
'src/ngAnimate/animateJs.js',
|
|
|
|
|
'src/ngAnimate/animateJsDriver.js',
|
|
|
|
|
'src/ngAnimate/animateQueue.js',
|
2016-03-02 16:09:25 -08:00
|
|
|
'src/ngAnimate/animateCache.js',
|
feat($animate): complete refactor of internal animation code
All of ngAnimate has been rewritten to make the internals of the
animation code more flexible, reuseable and performant.
BREAKING CHANGE: JavaSript and CSS animations can no longer be run in
parallel. With earlier versions of ngAnimate, both CSS and JS animations
would be run together when multiple animations were detected. This
feature has now been removed, however, the same effect, with even more
possibilities, can be achieved by injecting `$animateCss` into a
JavaScript-defined animation and creating custom CSS-based animations
from there. Read the ngAnimate docs for more info.
BREAKING CHANGE: The function params for `$animate.enabled()` when an
element is used are now flipped. This fix allows the function to act as
a getter when a single element param is provided.
```js
// < 1.4
$animate.enabled(false, element);
// 1.4+
$animate.enabled(element, false);
```
BREAKING CHANGE: In addition to disabling the children of the element,
`$animate.enabled(element, false)` will now also disable animations on
the element itself.
BREAKING CHANGE: Animation-related callbacks are now fired on
`$animate.on` instead of directly being on the element.
```js
// < 1.4
element.on('$animate:before', function(e, data) {
if (data.event === 'enter') { ... }
});
element.off('$animate:before', fn);
// 1.4+
$animate.on(element, 'enter', function(data) {
//...
});
$animate.off(element, 'enter', fn);
```
BREAKING CHANGE: There is no need to call `$scope.$apply` or
`$scope.$digest` inside of a animation promise callback anymore
since the promise is resolved within a digest automatically (but a
digest is not run unless the promise is chained).
```js
// < 1.4
$animate.enter(element).then(function() {
$scope.$apply(function() {
$scope.explode = true;
});
});
// 1.4+
$animate.enter(element).then(function() {
$scope.explode = true;
});
```
BREAKING CHANGE: When an enter, leave or move animation is triggered then it
will always end any pending or active parent class based animations
(animations triggered via ngClass) in order to ensure that any CSS
styles are resolved in time.
2015-04-02 20:52:30 -07:00
|
|
|
'src/ngAnimate/animation.js',
|
2015-10-27 19:04:28 -07:00
|
|
|
'src/ngAnimate/ngAnimateSwap.js',
|
feat($animate): complete refactor of internal animation code
All of ngAnimate has been rewritten to make the internals of the
animation code more flexible, reuseable and performant.
BREAKING CHANGE: JavaSript and CSS animations can no longer be run in
parallel. With earlier versions of ngAnimate, both CSS and JS animations
would be run together when multiple animations were detected. This
feature has now been removed, however, the same effect, with even more
possibilities, can be achieved by injecting `$animateCss` into a
JavaScript-defined animation and creating custom CSS-based animations
from there. Read the ngAnimate docs for more info.
BREAKING CHANGE: The function params for `$animate.enabled()` when an
element is used are now flipped. This fix allows the function to act as
a getter when a single element param is provided.
```js
// < 1.4
$animate.enabled(false, element);
// 1.4+
$animate.enabled(element, false);
```
BREAKING CHANGE: In addition to disabling the children of the element,
`$animate.enabled(element, false)` will now also disable animations on
the element itself.
BREAKING CHANGE: Animation-related callbacks are now fired on
`$animate.on` instead of directly being on the element.
```js
// < 1.4
element.on('$animate:before', function(e, data) {
if (data.event === 'enter') { ... }
});
element.off('$animate:before', fn);
// 1.4+
$animate.on(element, 'enter', function(data) {
//...
});
$animate.off(element, 'enter', fn);
```
BREAKING CHANGE: There is no need to call `$scope.$apply` or
`$scope.$digest` inside of a animation promise callback anymore
since the promise is resolved within a digest automatically (but a
digest is not run unless the promise is chained).
```js
// < 1.4
$animate.enter(element).then(function() {
$scope.$apply(function() {
$scope.explode = true;
});
});
// 1.4+
$animate.enter(element).then(function() {
$scope.explode = true;
});
```
BREAKING CHANGE: When an enter, leave or move animation is triggered then it
will always end any pending or active parent class based animations
(animations triggered via ngClass) in order to ensure that any CSS
styles are resolved in time.
2015-04-02 20:52:30 -07:00
|
|
|
'src/ngAnimate/module.js'
|
2013-10-21 09:06:53 +01:00
|
|
|
],
|
|
|
|
|
'ngCookies': [
|
2015-03-02 13:24:30 +02:00
|
|
|
'src/ngCookies/cookies.js',
|
|
|
|
|
'src/ngCookies/cookieWriter.js'
|
2013-10-21 09:06:53 +01:00
|
|
|
],
|
feat($interpolate): extend interpolation with MessageFormat like syntax
For more detailed information refer to this document:
https://docs.google.com/a/google.com/document/d/1pbtW2yvtmFBikfRrJd8VAsabiFkKezmYZ_PbgdjQOVU/edit
**Example:**
```html
{{recipients.length, plural, offset:1
=0 {You gave no gifts}
=1 { {{ recipients[0].gender, select,
male {You gave him a gift.}
female {You gave her a gift.}
other {You gave them a gift.}
}}
}
one { {{ recipients[0].gender, select,
male {You gave him and one other person a gift.}
female {You gave her and one other person a gift.}
other {You gave them and one other person a gift.}
}}
}
other {You gave {{recipients[0].gender}} and # other people gifts. }
}}
```
This is a SEPARATE module so you MUST include `angular-messageformat.js`
or `angular-messageformat.min.js`.
In addition, your application module should depend on the "ngMessageFormat"
(e.g. angular.module('myApp', ['ngMessageFormat']);)
When you use the `ngMessageFormat`, the $interpolate gets overridden with
a new service that adds the new MessageFormat behavior.
**Syntax differences from MessageFormat:**
- MessageFormat directives are always inside `{{ }}` instead of
single `{ }`. This ensures a consistent interpolation syntax (else you
could interpolate in more than one way and have to pick one based on
the features availability for that syntax.)
- The first part of such a syntax can be an arbitrary Angular
expression instead of a single identifier.
- You can nest them as deep as you want. As mentioned earlier, you
would use `{{ }}` to start the nested interpolation that may optionally
include select/plural extensions.
- Only `select` and `plural` keywords are currently recognized.
- Quoting support is coming in a future commit.
- Positional arguments/placeholders are not supported. They don't make
sense in Angular templates anyway (they are only helpful when using
API calls from a programming language.)
- Redefining of the startSymbol (`{{`) and endSymbol (`}}`) used for
interpolation is not yet supported.
Closes #11152
2015-02-12 13:45:25 -08:00
|
|
|
'ngMessageFormat': [
|
|
|
|
|
'src/ngMessageFormat/messageFormatCommon.js',
|
|
|
|
|
'src/ngMessageFormat/messageFormatSelector.js',
|
|
|
|
|
'src/ngMessageFormat/messageFormatInterpolationParts.js',
|
|
|
|
|
'src/ngMessageFormat/messageFormatParser.js',
|
|
|
|
|
'src/ngMessageFormat/messageFormatService.js'
|
|
|
|
|
],
|
2014-04-22 02:15:01 -04:00
|
|
|
'ngMessages': [
|
|
|
|
|
'src/ngMessages/messages.js'
|
|
|
|
|
],
|
2015-09-20 21:29:59 +02:00
|
|
|
'ngParseExt': [
|
|
|
|
|
'src/ngParseExt/ucd.js',
|
|
|
|
|
'src/ngParseExt/module.js'
|
|
|
|
|
],
|
2013-10-21 09:06:53 +01:00
|
|
|
'ngResource': [
|
|
|
|
|
'src/ngResource/resource.js'
|
|
|
|
|
],
|
|
|
|
|
'ngRoute': [
|
2016-06-09 23:56:25 +03:00
|
|
|
'src/shallowCopy.js',
|
2018-06-04 01:42:48 +03:00
|
|
|
'src/routeToRegExp.js',
|
2013-10-21 09:06:53 +01:00
|
|
|
'src/ngRoute/route.js',
|
|
|
|
|
'src/ngRoute/routeParams.js',
|
|
|
|
|
'src/ngRoute/directive/ngView.js'
|
|
|
|
|
],
|
|
|
|
|
'ngSanitize': [
|
|
|
|
|
'src/ngSanitize/sanitize.js',
|
|
|
|
|
'src/ngSanitize/filter/linky.js'
|
|
|
|
|
],
|
|
|
|
|
'ngMock': [
|
2018-06-04 01:42:48 +03:00
|
|
|
'src/routeToRegExp.js',
|
2016-06-06 17:03:59 +02:00
|
|
|
'src/ngMock/angular-mocks.js',
|
|
|
|
|
'src/ngMock/browserTrigger.js'
|
2013-10-21 09:06:53 +01:00
|
|
|
],
|
|
|
|
|
'ngTouch': [
|
|
|
|
|
'src/ngTouch/touch.js',
|
|
|
|
|
'src/ngTouch/swipe.js',
|
|
|
|
|
'src/ngTouch/directive/ngSwipe.js'
|
|
|
|
|
],
|
2014-07-26 01:15:19 +08:00
|
|
|
'ngAria': [
|
|
|
|
|
'src/ngAria/aria.js'
|
|
|
|
|
]
|
2013-10-21 09:06:53 +01:00
|
|
|
},
|
|
|
|
|
|
2012-03-26 21:18:01 -07:00
|
|
|
'angularTest': [
|
2013-08-23 15:41:47 -07:00
|
|
|
'test/helpers/*.js',
|
2011-08-15 16:17:12 -07:00
|
|
|
'test/*.js',
|
2012-03-23 14:03:24 -07:00
|
|
|
'test/auto/*.js',
|
2013-06-05 15:30:31 -07:00
|
|
|
'test/ng/**/*.js',
|
feat(ngAnimate): complete rewrite of animations
- ngAnimate directive is gone and was replaced with class based animations/transitions
- support for triggering animations on css class additions and removals
- done callback was added to all animation apis
- $animation and $animator where merged into a single $animate service with api:
- $animate.enter(element, parent, after, done);
- $animate.leave(element, done);
- $animate.move(element, parent, after, done);
- $animate.addClass(element, className, done);
- $animate.removeClass(element, className, done);
BREAKING CHANGE: too many things changed, we'll write up a separate doc with migration instructions
2013-06-18 13:59:57 -04:00
|
|
|
'test/ngAnimate/*.js',
|
2016-03-24 16:12:45 +01:00
|
|
|
'test/ngMessageFormat/*.js',
|
2014-04-22 02:15:01 -04:00
|
|
|
'test/ngMessages/*.js',
|
2012-03-26 16:22:06 -07:00
|
|
|
'test/ngCookies/*.js',
|
2012-03-26 21:45:38 -07:00
|
|
|
'test/ngResource/*.js',
|
2013-06-05 15:30:31 -07:00
|
|
|
'test/ngRoute/**/*.js',
|
|
|
|
|
'test/ngSanitize/**/*.js',
|
2013-02-08 13:39:23 -05:00
|
|
|
'test/ngMock/*.js',
|
2014-07-26 01:15:19 +08:00
|
|
|
'test/ngTouch/**/*.js',
|
|
|
|
|
'test/ngAria/*.js'
|
2012-03-26 21:18:01 -07:00
|
|
|
],
|
|
|
|
|
|
2013-06-28 01:47:35 -07:00
|
|
|
'karma': [
|
2017-12-27 19:16:46 +01:00
|
|
|
'node_modules/jquery/dist/jquery.js',
|
2012-03-26 21:18:01 -07:00
|
|
|
'test/jquery_remove.js',
|
|
|
|
|
'@angularSrc',
|
|
|
|
|
'@angularSrcModules',
|
2015-07-27 21:55:15 +01:00
|
|
|
'@angularTest'
|
2011-08-15 16:17:12 -07:00
|
|
|
],
|
|
|
|
|
|
2013-06-28 01:47:35 -07:00
|
|
|
'karmaExclude': [
|
2011-08-15 16:17:12 -07:00
|
|
|
'test/jquery_alias.js',
|
|
|
|
|
'src/angular-bootstrap.js',
|
2015-08-11 17:20:04 -07:00
|
|
|
'src/angular.bind.js'
|
2011-08-15 16:17:12 -07:00
|
|
|
],
|
|
|
|
|
|
2018-12-10 16:33:01 +00:00
|
|
|
'karmaModules-ngAnimate': [
|
2011-10-31 17:56:55 -07:00
|
|
|
'build/angular.js',
|
2018-10-15 15:10:10 +02:00
|
|
|
'build/angular-mocks.js',
|
2016-03-13 13:20:30 +01:00
|
|
|
'test/modules/no_bootstrap.js',
|
2018-10-15 15:10:10 +02:00
|
|
|
'test/helpers/matchers.js',
|
|
|
|
|
'test/helpers/privateMocks.js',
|
|
|
|
|
'test/helpers/support.js',
|
2018-12-10 16:33:01 +00:00
|
|
|
'test/helpers/testabilityPatch.js',
|
2018-10-15 15:10:10 +02:00
|
|
|
'@angularSrcModuleNgAnimate',
|
|
|
|
|
'test/ngAnimate/**/*.js'
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
'karmaModules-ngAria': [
|
|
|
|
|
'@angularSrcModuleNgAria',
|
|
|
|
|
'test/ngAria/**/*.js'
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
'karmaModules-ngCookies': [
|
|
|
|
|
'@angularSrcModuleNgCookies',
|
|
|
|
|
'test/ngCookies/**/*.js'
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
'karmaModules-ngMessageFormat': [
|
|
|
|
|
'@angularSrcModuleNgMessageFormat',
|
|
|
|
|
'test/ngMessageFormat/**/*.js'
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
'karmaModules-ngMessages': [
|
|
|
|
|
'build/angular-animate.js',
|
|
|
|
|
'@angularSrcModuleNgMessages',
|
|
|
|
|
'test/ngMessages/**/*.js'
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
// ngMock doesn't include the base because it must use the ngMock src files
|
|
|
|
|
'karmaModules-ngMock': [
|
|
|
|
|
'build/angular.js',
|
|
|
|
|
'src/ngMock/*.js',
|
|
|
|
|
'test/modules/no_bootstrap.js',
|
|
|
|
|
'test/helpers/matchers.js',
|
|
|
|
|
'test/helpers/privateMocks.js',
|
|
|
|
|
'test/helpers/support.js',
|
|
|
|
|
'test/helpers/testabilityPatch.js',
|
|
|
|
|
'src/routeToRegExp.js',
|
|
|
|
|
'build/angular-animate.js',
|
|
|
|
|
'test/ngMock/**/*.js'
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
'karmaModules-ngResource': [
|
|
|
|
|
'@angularSrcModuleNgResource',
|
|
|
|
|
'test/ngResource/**/*.js'
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
'karmaModules-ngRoute': [
|
|
|
|
|
'build/angular-animate.js',
|
|
|
|
|
'@angularSrcModuleNgRoute',
|
|
|
|
|
'test/ngRoute/**/*.js'
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
'karmaModules-ngSanitize': [
|
|
|
|
|
'@angularSrcModuleNgSanitize',
|
|
|
|
|
'test/ngSanitize/**/*.js'
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
'karmaModules-ngTouch': [
|
|
|
|
|
'@angularSrcModuleNgTouch',
|
|
|
|
|
'test/ngTouch/**/*.js'
|
2011-10-31 17:56:55 -07:00
|
|
|
],
|
|
|
|
|
|
2013-06-28 01:47:35 -07:00
|
|
|
'karmaJquery': [
|
2017-12-27 19:16:46 +01:00
|
|
|
'node_modules/jquery/dist/jquery.js',
|
2011-08-15 16:17:12 -07:00
|
|
|
'test/jquery_alias.js',
|
|
|
|
|
'@angularSrc',
|
2012-03-26 21:18:01 -07:00
|
|
|
'@angularSrcModules',
|
2015-07-27 21:55:15 +01:00
|
|
|
'@angularTest'
|
2011-08-15 16:17:12 -07:00
|
|
|
],
|
|
|
|
|
|
2013-06-28 01:47:35 -07:00
|
|
|
'karmaJqueryExclude': [
|
2011-08-15 16:17:12 -07:00
|
|
|
'src/angular-bootstrap.js',
|
2015-07-29 17:06:35 +01:00
|
|
|
'test/jquery_remove.js',
|
2015-08-11 17:20:04 -07:00
|
|
|
'src/angular.bind.js'
|
2011-08-15 16:17:12 -07:00
|
|
|
]
|
2011-10-31 18:12:26 -07:00
|
|
|
};
|
2012-02-09 11:12:39 -08:00
|
|
|
|
2016-07-20 15:45:04 +02:00
|
|
|
['2.1', '2.2'].forEach(function(jQueryVersion) {
|
2016-07-06 14:05:39 +02:00
|
|
|
angularFiles['karmaJquery' + jQueryVersion] = []
|
|
|
|
|
.concat(angularFiles.karmaJquery)
|
2016-07-20 15:45:04 +02:00
|
|
|
.map(function(path) {
|
2017-12-27 19:16:46 +01:00
|
|
|
if (path.startsWith('node_modules/jquery')) {
|
|
|
|
|
return path.replace(/^node_modules\/jquery/, 'node_modules/jquery-' + jQueryVersion);
|
2016-07-06 14:05:39 +02:00
|
|
|
}
|
|
|
|
|
return path;
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
2018-10-15 15:10:10 +02:00
|
|
|
angularFiles['angularSrcModuleNgAnimate'] = angularFiles['angularModules']['ngAnimate'];
|
|
|
|
|
angularFiles['angularSrcModuleNgAria'] = angularFiles['angularModules']['ngAria'];
|
|
|
|
|
angularFiles['angularSrcModuleNgCookies'] = angularFiles['angularModules']['ngCookies'];
|
|
|
|
|
angularFiles['angularSrcModuleNgMessageFormat'] = angularFiles['angularModules']['ngMessageFormat'];
|
|
|
|
|
angularFiles['angularSrcModuleNgMessages'] = angularFiles['angularModules']['ngMessages'];
|
|
|
|
|
angularFiles['angularSrcModuleNgResource'] = angularFiles['angularModules']['ngResource'];
|
|
|
|
|
angularFiles['angularSrcModuleNgRoute'] = angularFiles['angularModules']['ngRoute'];
|
|
|
|
|
angularFiles['angularSrcModuleNgSanitize'] = angularFiles['angularModules']['ngSanitize'];
|
|
|
|
|
angularFiles['angularSrcModuleNgTouch'] = angularFiles['angularModules']['ngTouch'];
|
|
|
|
|
|
2013-10-21 09:06:53 +01:00
|
|
|
angularFiles['angularSrcModules'] = [].concat(
|
|
|
|
|
angularFiles['angularModules']['ngAnimate'],
|
feat($interpolate): extend interpolation with MessageFormat like syntax
For more detailed information refer to this document:
https://docs.google.com/a/google.com/document/d/1pbtW2yvtmFBikfRrJd8VAsabiFkKezmYZ_PbgdjQOVU/edit
**Example:**
```html
{{recipients.length, plural, offset:1
=0 {You gave no gifts}
=1 { {{ recipients[0].gender, select,
male {You gave him a gift.}
female {You gave her a gift.}
other {You gave them a gift.}
}}
}
one { {{ recipients[0].gender, select,
male {You gave him and one other person a gift.}
female {You gave her and one other person a gift.}
other {You gave them and one other person a gift.}
}}
}
other {You gave {{recipients[0].gender}} and # other people gifts. }
}}
```
This is a SEPARATE module so you MUST include `angular-messageformat.js`
or `angular-messageformat.min.js`.
In addition, your application module should depend on the "ngMessageFormat"
(e.g. angular.module('myApp', ['ngMessageFormat']);)
When you use the `ngMessageFormat`, the $interpolate gets overridden with
a new service that adds the new MessageFormat behavior.
**Syntax differences from MessageFormat:**
- MessageFormat directives are always inside `{{ }}` instead of
single `{ }`. This ensures a consistent interpolation syntax (else you
could interpolate in more than one way and have to pick one based on
the features availability for that syntax.)
- The first part of such a syntax can be an arbitrary Angular
expression instead of a single identifier.
- You can nest them as deep as you want. As mentioned earlier, you
would use `{{ }}` to start the nested interpolation that may optionally
include select/plural extensions.
- Only `select` and `plural` keywords are currently recognized.
- Quoting support is coming in a future commit.
- Positional arguments/placeholders are not supported. They don't make
sense in Angular templates anyway (they are only helpful when using
API calls from a programming language.)
- Redefining of the startSymbol (`{{`) and endSymbol (`}}`) used for
interpolation is not yet supported.
Closes #11152
2015-02-12 13:45:25 -08:00
|
|
|
angularFiles['angularModules']['ngMessageFormat'],
|
2014-04-22 02:15:01 -04:00
|
|
|
angularFiles['angularModules']['ngMessages'],
|
2013-10-21 09:06:53 +01:00
|
|
|
angularFiles['angularModules']['ngCookies'],
|
|
|
|
|
angularFiles['angularModules']['ngResource'],
|
|
|
|
|
angularFiles['angularModules']['ngRoute'],
|
|
|
|
|
angularFiles['angularModules']['ngSanitize'],
|
|
|
|
|
angularFiles['angularModules']['ngMock'],
|
2014-07-26 01:15:19 +08:00
|
|
|
angularFiles['angularModules']['ngTouch'],
|
|
|
|
|
angularFiles['angularModules']['ngAria']
|
2013-10-21 09:06:53 +01:00
|
|
|
);
|
|
|
|
|
|
2012-08-30 01:10:28 -07:00
|
|
|
if (exports) {
|
2013-06-28 01:47:35 -07:00
|
|
|
exports.files = angularFiles;
|
|
|
|
|
exports.mergeFilesFor = function() {
|
2012-08-30 01:10:28 -07:00
|
|
|
var files = [];
|
|
|
|
|
|
2013-06-28 01:47:35 -07:00
|
|
|
Array.prototype.slice.call(arguments, 0).forEach(function(filegroup) {
|
|
|
|
|
angularFiles[filegroup].forEach(function(file) {
|
|
|
|
|
// replace @ref
|
2016-07-20 15:45:04 +02:00
|
|
|
var match = file.match(/^@(.*)/);
|
2013-06-28 01:47:35 -07:00
|
|
|
if (match) {
|
|
|
|
|
files = files.concat(angularFiles[match[1]]);
|
|
|
|
|
} else {
|
|
|
|
|
files.push(file);
|
|
|
|
|
}
|
|
|
|
|
});
|
2012-08-30 01:10:28 -07:00
|
|
|
});
|
2012-03-26 21:18:01 -07:00
|
|
|
|
2012-08-30 01:10:28 -07:00
|
|
|
return files;
|
2013-06-28 01:47:35 -07:00
|
|
|
};
|
2012-02-09 11:12:39 -08:00
|
|
|
}
|