angular-gem 1.2.9 → 1.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/lib/angular-gem/version.rb +1 -1
- data/vendor/assets/javascripts/1.2.10/angular-animate.js +1486 -0
- data/vendor/assets/javascripts/1.2.10/angular-cookies.js +202 -0
- data/vendor/assets/javascripts/1.2.10/angular-loader.js +410 -0
- data/vendor/assets/javascripts/1.2.10/angular-mocks.js +2165 -0
- data/vendor/assets/javascripts/1.2.10/angular-resource.js +594 -0
- data/vendor/assets/javascripts/1.2.10/angular-route.js +920 -0
- data/vendor/assets/javascripts/1.2.10/angular-sanitize.js +622 -0
- data/vendor/assets/javascripts/1.2.10/angular-scenario.js +32600 -0
- data/vendor/assets/javascripts/1.2.10/angular-touch.js +563 -0
- data/vendor/assets/javascripts/1.2.10/angular.js +20594 -0
- data/vendor/assets/javascripts/angular-animate.js +5 -2
- data/vendor/assets/javascripts/angular-cookies.js +1 -1
- data/vendor/assets/javascripts/angular-loader.js +2 -2
- data/vendor/assets/javascripts/angular-mocks.js +3 -3
- data/vendor/assets/javascripts/angular-resource.js +1 -1
- data/vendor/assets/javascripts/angular-route.js +3 -3
- data/vendor/assets/javascripts/angular-sanitize.js +1 -1
- data/vendor/assets/javascripts/angular-scenario.js +89 -55
- data/vendor/assets/javascripts/angular-touch.js +1 -1
- data/vendor/assets/javascripts/angular.js +89 -55
- metadata +53 -57
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license AngularJS v1.2.
|
2
|
+
* @license AngularJS v1.2.10
|
3
3
|
* (c) 2010-2014 Google, Inc. http://angularjs.org
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -68,7 +68,7 @@ function minErr(module) {
|
|
68
68
|
return match;
|
69
69
|
});
|
70
70
|
|
71
|
-
message = message + '\nhttp://errors.angularjs.org/1.2.
|
71
|
+
message = message + '\nhttp://errors.angularjs.org/1.2.10/' +
|
72
72
|
(module ? module + '/' : '') + code;
|
73
73
|
for (i = 2; i < arguments.length; i++) {
|
74
74
|
message = message + (i == 2 ? '?' : '&') + 'p' + (i-2) + '=' +
|
@@ -1834,11 +1834,11 @@ function setupModuleLoader(window) {
|
|
1834
1834
|
* - `codeName` – `{string}` – Code name of the release, such as "jiggling-armfat".
|
1835
1835
|
*/
|
1836
1836
|
var version = {
|
1837
|
-
full: '1.2.
|
1837
|
+
full: '1.2.10', // all of these placeholder strings will be replaced by grunt's
|
1838
1838
|
major: 1, // package task
|
1839
1839
|
minor: 2,
|
1840
|
-
dot:
|
1841
|
-
codeName: '
|
1840
|
+
dot: 10,
|
1841
|
+
codeName: 'augmented-serendipity'
|
1842
1842
|
};
|
1843
1843
|
|
1844
1844
|
|
@@ -3280,11 +3280,9 @@ function annotate(fn) {
|
|
3280
3280
|
* @param {(Object|function())} provider If the provider is:
|
3281
3281
|
*
|
3282
3282
|
* - `Object`: then it should have a `$get` method. The `$get` method will be invoked using
|
3283
|
-
*
|
3284
|
-
*
|
3285
|
-
*
|
3286
|
-
* {@link AUTO.$injector#instantiate $injector.instantiate()}, then treated as
|
3287
|
-
* `object`.
|
3283
|
+
* {@link AUTO.$injector#invoke $injector.invoke()} when an instance needs to be created.
|
3284
|
+
* - `Constructor`: a new instance of the provider will be created using
|
3285
|
+
* {@link AUTO.$injector#instantiate $injector.instantiate()}, then treated as `object`.
|
3288
3286
|
*
|
3289
3287
|
* @returns {Object} registered provider instance
|
3290
3288
|
|
@@ -7063,31 +7061,14 @@ function $HttpProvider() {
|
|
7063
7061
|
* XMLHttpRequest will transparently follow it, meaning that the error callback will not be
|
7064
7062
|
* called for such responses.
|
7065
7063
|
*
|
7066
|
-
* # Calling $http from outside AngularJS
|
7067
|
-
* The `$http` service will not actually send the request until the next `$digest()` is
|
7068
|
-
* executed. Normally this is not an issue, since almost all the time your call to `$http` will
|
7069
|
-
* be from within a `$apply()` block.
|
7070
|
-
* If you are calling `$http` from outside Angular, then you should wrap it in a call to
|
7071
|
-
* `$apply` to cause a $digest to occur and also to handle errors in the block correctly.
|
7072
|
-
*
|
7073
|
-
* ```
|
7074
|
-
* $scope.$apply(function() {
|
7075
|
-
* $http(...);
|
7076
|
-
* });
|
7077
|
-
* ```
|
7078
|
-
*
|
7079
7064
|
* # Writing Unit Tests that use $http
|
7080
|
-
* When unit testing
|
7081
|
-
*
|
7082
|
-
*
|
7083
|
-
* code that calls the `$http()` method inside a $apply block as explained in the previous
|
7084
|
-
* section.
|
7065
|
+
* When unit testing (using {@link api/ngMock ngMock}), it is necessary to call
|
7066
|
+
* {@link api/ngMock.$httpBackend#methods_flush $httpBackend.flush()} to flush each pending
|
7067
|
+
* request using trained responses.
|
7085
7068
|
*
|
7086
7069
|
* ```
|
7087
7070
|
* $httpBackend.expectGET(...);
|
7088
|
-
* $
|
7089
|
-
* $http.get(...);
|
7090
|
-
* });
|
7071
|
+
* $http.get(...);
|
7091
7072
|
* $httpBackend.flush();
|
7092
7073
|
* ```
|
7093
7074
|
*
|
@@ -8322,7 +8303,7 @@ function $IntervalProvider() {
|
|
8322
8303
|
* In tests you can use {@link ngMock.$interval#methods_flush `$interval.flush(millis)`} to
|
8323
8304
|
* move forward by `millis` milliseconds and trigger any functions scheduled to run in that
|
8324
8305
|
* time.
|
8325
|
-
*
|
8306
|
+
*
|
8326
8307
|
* <div class="alert alert-warning">
|
8327
8308
|
* **Note**: Intervals created by this service must be explicitly destroyed when you are finished
|
8328
8309
|
* with them. In particular they are not automatically destroyed when a controller's scope or a
|
@@ -8435,8 +8416,8 @@ function $IntervalProvider() {
|
|
8435
8416
|
promise = deferred.promise,
|
8436
8417
|
iteration = 0,
|
8437
8418
|
skipApply = (isDefined(invokeApply) && !invokeApply);
|
8438
|
-
|
8439
|
-
count = isDefined(count) ? count : 0
|
8419
|
+
|
8420
|
+
count = isDefined(count) ? count : 0;
|
8440
8421
|
|
8441
8422
|
promise.then(null, null, fn);
|
8442
8423
|
|
@@ -10136,7 +10117,7 @@ Parser.prototype = {
|
|
10136
10117
|
var getter = getterFn(field, this.options, this.text);
|
10137
10118
|
|
10138
10119
|
return extend(function(scope, locals, self) {
|
10139
|
-
return getter(self || object(scope, locals)
|
10120
|
+
return getter(self || object(scope, locals));
|
10140
10121
|
}, {
|
10141
10122
|
assign: function(scope, value, locals) {
|
10142
10123
|
return setter(object(scope, locals), field, value, parser.text, parser.options);
|
@@ -10712,9 +10693,9 @@ function $ParseProvider() {
|
|
10712
10693
|
* asynchronous programming what `try`, `catch` and `throw` keywords are to synchronous programming.
|
10713
10694
|
*
|
10714
10695
|
* <pre>
|
10715
|
-
* // for the purpose of this example let's assume that variables `$q` and `
|
10716
|
-
* // available in the current lexical scope (they could have been injected or passed in).
|
10717
|
-
*
|
10696
|
+
* // for the purpose of this example let's assume that variables `$q`, `scope` and `okToGreet`
|
10697
|
+
* // are available in the current lexical scope (they could have been injected or passed in).
|
10698
|
+
*
|
10718
10699
|
* function asyncGreet(name) {
|
10719
10700
|
* var deferred = $q.defer();
|
10720
10701
|
*
|
@@ -12647,7 +12628,7 @@ function $SceDelegateProvider() {
|
|
12647
12628
|
*
|
12648
12629
|
* @description
|
12649
12630
|
* Returns an object that is trusted by angular for use in specified strict
|
12650
|
-
* contextual escaping contexts (such as ng-
|
12631
|
+
* contextual escaping contexts (such as ng-bind-html, ng-include, any src
|
12651
12632
|
* attribute interpolation, any dom event binding attribute interpolation
|
12652
12633
|
* such as for onclick, etc.) that uses the provided value.
|
12653
12634
|
* See {@link ng.$sce $sce} for enabling strict contextual escaping.
|
@@ -12874,8 +12855,8 @@ function $SceDelegateProvider() {
|
|
12874
12855
|
* It's important to remember that SCE only applies to interpolation expressions.
|
12875
12856
|
*
|
12876
12857
|
* If your expressions are constant literals, they're automatically trusted and you don't need to
|
12877
|
-
* call `$sce.trustAs` on them
|
12878
|
-
* `<div ng-
|
12858
|
+
* call `$sce.trustAs` on them (remember to include the `ngSanitize` module) (e.g.
|
12859
|
+
* `<div ng-bind-html="'<b>implicitly trusted</b>'"></div>`) just works.
|
12879
12860
|
*
|
12880
12861
|
* Additionally, `a[href]` and `img[src]` automatically sanitize their URLs and do not pass them
|
12881
12862
|
* through {@link ng.$sce#methods_getTrusted $sce.getTrusted}. SCE doesn't play a role here.
|
@@ -12935,7 +12916,7 @@ function $SceDelegateProvider() {
|
|
12935
12916
|
* matched against the **entire** *normalized / absolute URL* of the resource being tested
|
12936
12917
|
* (even when the RegExp did not have the `^` and `$` codes.) In addition, any flags
|
12937
12918
|
* present on the RegExp (such as multiline, global, ignoreCase) are ignored.
|
12938
|
-
* - If you are generating your
|
12919
|
+
* - If you are generating your JavaScript from some other templating engine (not
|
12939
12920
|
* recommended, e.g. in issue [#4006](https://github.com/angular/angular.js/issues/4006)),
|
12940
12921
|
* remember to escape your regular expression (and be aware that you might need more than
|
12941
12922
|
* one level of escaping depending on your templating engine and the way you interpolated
|
@@ -12952,7 +12933,7 @@ function $SceDelegateProvider() {
|
|
12952
12933
|
* ## Show me an example using SCE.
|
12953
12934
|
*
|
12954
12935
|
* @example
|
12955
|
-
<example module="mySceApp">
|
12936
|
+
<example module="mySceApp" deps="angular-sanitize.js">
|
12956
12937
|
<file name="index.html">
|
12957
12938
|
<div ng-controller="myAppController as myCtrl">
|
12958
12939
|
<i ng-bind-html="myCtrl.explicitlyTrustedHtml" id="explicitlyTrustedHtml"></i><br><br>
|
@@ -13177,8 +13158,8 @@ function $SceProvider() {
|
|
13177
13158
|
*
|
13178
13159
|
* @description
|
13179
13160
|
* Delegates to {@link ng.$sceDelegate#methods_trustAs `$sceDelegate.trustAs`}. As such,
|
13180
|
-
* returns an
|
13181
|
-
* escaping contexts (such as ng-
|
13161
|
+
* returns an object that is trusted by angular for use in specified strict contextual
|
13162
|
+
* escaping contexts (such as ng-bind-html, ng-include, any src attribute
|
13182
13163
|
* interpolation, any dom event binding attribute interpolation such as for onclick, etc.)
|
13183
13164
|
* that uses the provided value. See * {@link ng.$sce $sce} for enabling strict contextual
|
13184
13165
|
* escaping.
|
@@ -14856,11 +14837,14 @@ var htmlAnchorDirective = valueFn({
|
|
14856
14837
|
element.append(document.createComment('IE fix'));
|
14857
14838
|
}
|
14858
14839
|
|
14859
|
-
if (!attr.href && !attr.name) {
|
14840
|
+
if (!attr.href && !attr.xlinkHref && !attr.name) {
|
14860
14841
|
return function(scope, element) {
|
14842
|
+
// SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute.
|
14843
|
+
var href = toString.call(element.prop('href')) === '[object SVGAnimatedString]' ?
|
14844
|
+
'xlink:href' : 'href';
|
14861
14845
|
element.on('click', function(event){
|
14862
14846
|
// if we have no href url, then don't navigate anywhere.
|
14863
|
-
if (!element.attr(
|
14847
|
+
if (!element.attr(href)) {
|
14864
14848
|
event.preventDefault();
|
14865
14849
|
}
|
14866
14850
|
});
|
@@ -15627,7 +15611,7 @@ var ngFormDirective = formDirectiveFactory(true);
|
|
15627
15611
|
*/
|
15628
15612
|
|
15629
15613
|
var URL_REGEXP = /^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/;
|
15630
|
-
var EMAIL_REGEXP = /^[
|
15614
|
+
var EMAIL_REGEXP = /^[a-z0-9!#$%&'*+/=?^_`{|}~.-]+@[a-z0-9-]+(\.[a-z0-9-]+)*$/i;
|
15631
15615
|
var NUMBER_REGEXP = /^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/;
|
15632
15616
|
|
15633
15617
|
var inputType = {
|
@@ -15927,6 +15911,8 @@ var inputType = {
|
|
15927
15911
|
* @param {string=} name Property name of the form under which the control is published.
|
15928
15912
|
* @param {string=} ngChange Angular expression to be executed when input changes due to user
|
15929
15913
|
* interaction with the input element.
|
15914
|
+
* @param {string} ngValue Angular expression which sets the value to which the expression should
|
15915
|
+
* be set when selected.
|
15930
15916
|
*
|
15931
15917
|
* @example
|
15932
15918
|
<doc:example>
|
@@ -15934,21 +15920,26 @@ var inputType = {
|
|
15934
15920
|
<script>
|
15935
15921
|
function Ctrl($scope) {
|
15936
15922
|
$scope.color = 'blue';
|
15923
|
+
$scope.specialValue = {
|
15924
|
+
"id": "12345",
|
15925
|
+
"value": "green"
|
15926
|
+
};
|
15937
15927
|
}
|
15938
15928
|
</script>
|
15939
15929
|
<form name="myForm" ng-controller="Ctrl">
|
15940
15930
|
<input type="radio" ng-model="color" value="red"> Red <br/>
|
15941
|
-
<input type="radio" ng-model="color" value="
|
15931
|
+
<input type="radio" ng-model="color" ng-value="specialValue"> Green <br/>
|
15942
15932
|
<input type="radio" ng-model="color" value="blue"> Blue <br/>
|
15943
|
-
<tt>color = {{color}}</tt><br/>
|
15933
|
+
<tt>color = {{color | json}}</tt><br/>
|
15944
15934
|
</form>
|
15935
|
+
Note that `ng-value="specialValue"` sets radio item's value to be the value of `$scope.specialValue`.
|
15945
15936
|
</doc:source>
|
15946
15937
|
<doc:scenario>
|
15947
15938
|
it('should change state', function() {
|
15948
|
-
expect(binding('color')).toEqual('blue');
|
15939
|
+
expect(binding('color')).toEqual('"blue"');
|
15949
15940
|
|
15950
15941
|
input('color').select('red');
|
15951
|
-
expect(binding('color')).toEqual('red');
|
15942
|
+
expect(binding('color')).toEqual('"red"');
|
15952
15943
|
});
|
15953
15944
|
</doc:scenario>
|
15954
15945
|
</doc:example>
|
@@ -16806,7 +16797,10 @@ var ngModelDirective = function() {
|
|
16806
16797
|
* @name ng.directive:ngChange
|
16807
16798
|
*
|
16808
16799
|
* @description
|
16809
|
-
* Evaluate given expression when user changes the input.
|
16800
|
+
* Evaluate the given expression when the user changes the input.
|
16801
|
+
* The expression is evaluated immediately, unlike the JavaScript onchange event
|
16802
|
+
* which only triggers at the end of a change (usually, when the user leaves the
|
16803
|
+
* form element or presses the return key).
|
16810
16804
|
* The expression is not evaluated when the value change is coming from the model.
|
16811
16805
|
*
|
16812
16806
|
* Note, this directive requires `ngModel` to be present.
|
@@ -17799,6 +17793,7 @@ var ngControllerDirective = [function() {
|
|
17799
17793
|
* an element is clicked.
|
17800
17794
|
*
|
17801
17795
|
* @element ANY
|
17796
|
+
* @priority 0
|
17802
17797
|
* @param {expression} ngClick {@link guide/expression Expression} to evaluate upon
|
17803
17798
|
* click. (Event object is available as `$event`)
|
17804
17799
|
*
|
@@ -17855,6 +17850,7 @@ forEach(
|
|
17855
17850
|
* The `ngDblclick` directive allows you to specify custom behavior on a dblclick event.
|
17856
17851
|
*
|
17857
17852
|
* @element ANY
|
17853
|
+
* @priority 0
|
17858
17854
|
* @param {expression} ngDblclick {@link guide/expression Expression} to evaluate upon
|
17859
17855
|
* a dblclick. (The Event object is available as `$event`)
|
17860
17856
|
*
|
@@ -17878,6 +17874,7 @@ forEach(
|
|
17878
17874
|
* The ngMousedown directive allows you to specify custom behavior on mousedown event.
|
17879
17875
|
*
|
17880
17876
|
* @element ANY
|
17877
|
+
* @priority 0
|
17881
17878
|
* @param {expression} ngMousedown {@link guide/expression Expression} to evaluate upon
|
17882
17879
|
* mousedown. (Event object is available as `$event`)
|
17883
17880
|
*
|
@@ -17901,6 +17898,7 @@ forEach(
|
|
17901
17898
|
* Specify custom behavior on mouseup event.
|
17902
17899
|
*
|
17903
17900
|
* @element ANY
|
17901
|
+
* @priority 0
|
17904
17902
|
* @param {expression} ngMouseup {@link guide/expression Expression} to evaluate upon
|
17905
17903
|
* mouseup. (Event object is available as `$event`)
|
17906
17904
|
*
|
@@ -17923,6 +17921,7 @@ forEach(
|
|
17923
17921
|
* Specify custom behavior on mouseover event.
|
17924
17922
|
*
|
17925
17923
|
* @element ANY
|
17924
|
+
* @priority 0
|
17926
17925
|
* @param {expression} ngMouseover {@link guide/expression Expression} to evaluate upon
|
17927
17926
|
* mouseover. (Event object is available as `$event`)
|
17928
17927
|
*
|
@@ -17946,6 +17945,7 @@ forEach(
|
|
17946
17945
|
* Specify custom behavior on mouseenter event.
|
17947
17946
|
*
|
17948
17947
|
* @element ANY
|
17948
|
+
* @priority 0
|
17949
17949
|
* @param {expression} ngMouseenter {@link guide/expression Expression} to evaluate upon
|
17950
17950
|
* mouseenter. (Event object is available as `$event`)
|
17951
17951
|
*
|
@@ -17969,6 +17969,7 @@ forEach(
|
|
17969
17969
|
* Specify custom behavior on mouseleave event.
|
17970
17970
|
*
|
17971
17971
|
* @element ANY
|
17972
|
+
* @priority 0
|
17972
17973
|
* @param {expression} ngMouseleave {@link guide/expression Expression} to evaluate upon
|
17973
17974
|
* mouseleave. (Event object is available as `$event`)
|
17974
17975
|
*
|
@@ -17992,6 +17993,7 @@ forEach(
|
|
17992
17993
|
* Specify custom behavior on mousemove event.
|
17993
17994
|
*
|
17994
17995
|
* @element ANY
|
17996
|
+
* @priority 0
|
17995
17997
|
* @param {expression} ngMousemove {@link guide/expression Expression} to evaluate upon
|
17996
17998
|
* mousemove. (Event object is available as `$event`)
|
17997
17999
|
*
|
@@ -18015,6 +18017,7 @@ forEach(
|
|
18015
18017
|
* Specify custom behavior on keydown event.
|
18016
18018
|
*
|
18017
18019
|
* @element ANY
|
18020
|
+
* @priority 0
|
18018
18021
|
* @param {expression} ngKeydown {@link guide/expression Expression} to evaluate upon
|
18019
18022
|
* keydown. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)
|
18020
18023
|
*
|
@@ -18036,6 +18039,7 @@ forEach(
|
|
18036
18039
|
* Specify custom behavior on keyup event.
|
18037
18040
|
*
|
18038
18041
|
* @element ANY
|
18042
|
+
* @priority 0
|
18039
18043
|
* @param {expression} ngKeyup {@link guide/expression Expression} to evaluate upon
|
18040
18044
|
* keyup. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)
|
18041
18045
|
*
|
@@ -18082,6 +18086,7 @@ forEach(
|
|
18082
18086
|
* attribute**.
|
18083
18087
|
*
|
18084
18088
|
* @element form
|
18089
|
+
* @priority 0
|
18085
18090
|
* @param {expression} ngSubmit {@link guide/expression Expression} to eval. (Event object is available as `$event`)
|
18086
18091
|
*
|
18087
18092
|
* @example
|
@@ -18131,6 +18136,7 @@ forEach(
|
|
18131
18136
|
* Specify custom behavior on focus event.
|
18132
18137
|
*
|
18133
18138
|
* @element window, input, select, textarea, a
|
18139
|
+
* @priority 0
|
18134
18140
|
* @param {expression} ngFocus {@link guide/expression Expression} to evaluate upon
|
18135
18141
|
* focus. (Event object is available as `$event`)
|
18136
18142
|
*
|
@@ -18146,6 +18152,7 @@ forEach(
|
|
18146
18152
|
* Specify custom behavior on blur event.
|
18147
18153
|
*
|
18148
18154
|
* @element window, input, select, textarea, a
|
18155
|
+
* @priority 0
|
18149
18156
|
* @param {expression} ngBlur {@link guide/expression Expression} to evaluate upon
|
18150
18157
|
* blur. (Event object is available as `$event`)
|
18151
18158
|
*
|
@@ -18161,6 +18168,7 @@ forEach(
|
|
18161
18168
|
* Specify custom behavior on copy event.
|
18162
18169
|
*
|
18163
18170
|
* @element window, input, select, textarea, a
|
18171
|
+
* @priority 0
|
18164
18172
|
* @param {expression} ngCopy {@link guide/expression Expression} to evaluate upon
|
18165
18173
|
* copy. (Event object is available as `$event`)
|
18166
18174
|
*
|
@@ -18181,6 +18189,7 @@ forEach(
|
|
18181
18189
|
* Specify custom behavior on cut event.
|
18182
18190
|
*
|
18183
18191
|
* @element window, input, select, textarea, a
|
18192
|
+
* @priority 0
|
18184
18193
|
* @param {expression} ngCut {@link guide/expression Expression} to evaluate upon
|
18185
18194
|
* cut. (Event object is available as `$event`)
|
18186
18195
|
*
|
@@ -18201,6 +18210,7 @@ forEach(
|
|
18201
18210
|
* Specify custom behavior on paste event.
|
18202
18211
|
*
|
18203
18212
|
* @element window, input, select, textarea, a
|
18213
|
+
* @priority 0
|
18204
18214
|
* @param {expression} ngPaste {@link guide/expression Expression} to evaluate upon
|
18205
18215
|
* paste. (Event object is available as `$event`)
|
18206
18216
|
*
|
@@ -18584,6 +18594,13 @@ var ngIncludeFillContentDirective = ['$compile',
|
|
18584
18594
|
* should use {@link guide/controller controllers} rather than `ngInit`
|
18585
18595
|
* to initialize values on a scope.
|
18586
18596
|
* </div>
|
18597
|
+
* <div class="alert alert-warning">
|
18598
|
+
* **Note**: If you have assignment in `ngInit` along with {@link api/ng.$filter `$filter`}, make
|
18599
|
+
* sure you have parenthesis for correct precedence:
|
18600
|
+
* <pre class="prettyprint">
|
18601
|
+
* <div ng-init="test1 = (data | orderBy:'name')"></div>
|
18602
|
+
* </pre>
|
18603
|
+
* </div>
|
18587
18604
|
*
|
18588
18605
|
* @priority 450
|
18589
18606
|
*
|
@@ -19319,6 +19336,11 @@ var ngRepeatDirective = ['$parse', '$animate', function($parse, $animate) {
|
|
19319
19336
|
*
|
19320
19337
|
* Just remember to include the important flag so the CSS override will function.
|
19321
19338
|
*
|
19339
|
+
* <div class="alert alert-warning">
|
19340
|
+
* **Note:** Here is a list of values that ngShow will consider as a falsy value (case insensitive):<br />
|
19341
|
+
* "f" / "0" / "false" / "no" / "n" / "[]"
|
19342
|
+
* </div>
|
19343
|
+
*
|
19322
19344
|
* ## A note about animations with ngShow
|
19323
19345
|
*
|
19324
19346
|
* Animations in ngShow/ngHide work with the show and hide events that are triggered when the directive expression
|
@@ -19467,6 +19489,11 @@ var ngShowDirective = ['$animate', function($animate) {
|
|
19467
19489
|
* </pre>
|
19468
19490
|
*
|
19469
19491
|
* Just remember to include the important flag so the CSS override will function.
|
19492
|
+
*
|
19493
|
+
* <div class="alert alert-warning">
|
19494
|
+
* **Note:** Here is a list of values that ngHide will consider as a falsy value (case insensitive):<br />
|
19495
|
+
* "f" / "0" / "false" / "no" / "n" / "[]"
|
19496
|
+
* </div>
|
19470
19497
|
*
|
19471
19498
|
* ## A note about animations with ngHide
|
19472
19499
|
*
|
@@ -19938,14 +19965,21 @@ var ngOptionsMinErr = minErr('ngOptions');
|
|
19938
19965
|
* represented by the selected option will be bound to the model identified by the `ngModel`
|
19939
19966
|
* directive.
|
19940
19967
|
*
|
19968
|
+
* <div class="alert alert-warning">
|
19969
|
+
* **Note:** `ngModel` compares by reference, not value. This is important when binding to an
|
19970
|
+
* array of objects. See an example {@link http://jsfiddle.net/qWzTb/ in this jsfiddle}.
|
19971
|
+
* </div>
|
19972
|
+
*
|
19941
19973
|
* Optionally, a single hard-coded `<option>` element, with the value set to an empty string, can
|
19942
19974
|
* be nested into the `<select>` element. This element will then represent the `null` or "not selected"
|
19943
19975
|
* option. See example below for demonstration.
|
19944
19976
|
*
|
19945
|
-
*
|
19977
|
+
* <div class="alert alert-warning">
|
19978
|
+
* **Note:** `ngOptions` provides iterator facility for `<option>` element which should be used instead
|
19946
19979
|
* of {@link ng.directive:ngRepeat ngRepeat} when you want the
|
19947
19980
|
* `select` model to be bound to a non-string value. This is because an option element can only
|
19948
19981
|
* be bound to string values at present.
|
19982
|
+
* </div>
|
19949
19983
|
*
|
19950
19984
|
* @param {string} ngModel Assignable angular expression to data-bind to.
|
19951
19985
|
* @param {string=} name Property name of the form under which the control is published.
|
@@ -20349,7 +20383,7 @@ var selectDirective = ['$compile', '$parse', function($compile, $parse) {
|
|
20349
20383
|
|
20350
20384
|
// We now build up the list of options we need (we merge later)
|
20351
20385
|
for (index = 0; length = keys.length, index < length; index++) {
|
20352
|
-
|
20386
|
+
|
20353
20387
|
key = index;
|
20354
20388
|
if (keyName) {
|
20355
20389
|
key = keys[index];
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: angular-gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
5
|
-
prerelease:
|
4
|
+
version: 1.2.10
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Christian Vuerings
|
@@ -11,12 +10,11 @@ authors:
|
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
date: 2014-
|
13
|
+
date: 2014-02-12 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: railties
|
18
17
|
requirement: !ruby/object:Gem::Requirement
|
19
|
-
none: false
|
20
18
|
requirements:
|
21
19
|
- - ! '>='
|
22
20
|
- !ruby/object:Gem::Version
|
@@ -24,7 +22,6 @@ dependencies:
|
|
24
22
|
type: :runtime
|
25
23
|
prerelease: false
|
26
24
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
-
none: false
|
28
25
|
requirements:
|
29
26
|
- - ! '>='
|
30
27
|
- !ruby/object:Gem::Version
|
@@ -32,7 +29,6 @@ dependencies:
|
|
32
29
|
- !ruby/object:Gem::Dependency
|
33
30
|
name: coffee-script
|
34
31
|
requirement: !ruby/object:Gem::Requirement
|
35
|
-
none: false
|
36
32
|
requirements:
|
37
33
|
- - ~>
|
38
34
|
- !ruby/object:Gem::Version
|
@@ -40,7 +36,6 @@ dependencies:
|
|
40
36
|
type: :runtime
|
41
37
|
prerelease: false
|
42
38
|
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
39
|
requirements:
|
45
40
|
- - ~>
|
46
41
|
- !ruby/object:Gem::Version
|
@@ -48,7 +43,6 @@ dependencies:
|
|
48
43
|
- !ruby/object:Gem::Dependency
|
49
44
|
name: bundler
|
50
45
|
requirement: !ruby/object:Gem::Requirement
|
51
|
-
none: false
|
52
46
|
requirements:
|
53
47
|
- - ! '>='
|
54
48
|
- !ruby/object:Gem::Version
|
@@ -56,7 +50,6 @@ dependencies:
|
|
56
50
|
type: :development
|
57
51
|
prerelease: false
|
58
52
|
version_requirements: !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
53
|
requirements:
|
61
54
|
- - ! '>='
|
62
55
|
- !ruby/object:Gem::Version
|
@@ -64,7 +57,6 @@ dependencies:
|
|
64
57
|
- !ruby/object:Gem::Dependency
|
65
58
|
name: tzinfo
|
66
59
|
requirement: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
60
|
requirements:
|
69
61
|
- - ! '>='
|
70
62
|
- !ruby/object:Gem::Version
|
@@ -72,7 +64,6 @@ dependencies:
|
|
72
64
|
type: :development
|
73
65
|
prerelease: false
|
74
66
|
version_requirements: !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
67
|
requirements:
|
77
68
|
- - ! '>='
|
78
69
|
- !ruby/object:Gem::Version
|
@@ -80,7 +71,6 @@ dependencies:
|
|
80
71
|
- !ruby/object:Gem::Dependency
|
81
72
|
name: nokogiri
|
82
73
|
requirement: !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
74
|
requirements:
|
85
75
|
- - ! '>='
|
86
76
|
- !ruby/object:Gem::Version
|
@@ -88,7 +78,6 @@ dependencies:
|
|
88
78
|
type: :development
|
89
79
|
prerelease: false
|
90
80
|
version_requirements: !ruby/object:Gem::Requirement
|
91
|
-
none: false
|
92
81
|
requirements:
|
93
82
|
- - ! '>='
|
94
83
|
- !ruby/object:Gem::Version
|
@@ -96,7 +85,6 @@ dependencies:
|
|
96
85
|
- !ruby/object:Gem::Dependency
|
97
86
|
name: coveralls
|
98
87
|
requirement: !ruby/object:Gem::Requirement
|
99
|
-
none: false
|
100
88
|
requirements:
|
101
89
|
- - ! '>='
|
102
90
|
- !ruby/object:Gem::Version
|
@@ -104,7 +92,6 @@ dependencies:
|
|
104
92
|
type: :development
|
105
93
|
prerelease: false
|
106
94
|
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
none: false
|
108
95
|
requirements:
|
109
96
|
- - ! '>='
|
110
97
|
- !ruby/object:Gem::Version
|
@@ -118,14 +105,51 @@ executables: []
|
|
118
105
|
extensions: []
|
119
106
|
extra_rdoc_files: []
|
120
107
|
files:
|
121
|
-
-
|
108
|
+
- CHANGELOG.md
|
109
|
+
- MIT-LICENSE
|
110
|
+
- README.md
|
111
|
+
- Rakefile
|
122
112
|
- lib/angular-gem.rb
|
113
|
+
- lib/angular-gem/version.rb
|
123
114
|
- lib/generators/angular/controller/controller_generator.rb
|
124
115
|
- lib/generators/angular/controller/templates/controller.coffee
|
125
116
|
- lib/generators/angular/install/install_generator.rb
|
126
117
|
- lib/generators/angular/resource_helpers.rb
|
127
118
|
- lib/tasks/copy.rake
|
128
119
|
- lib/tasks/tag.rake
|
120
|
+
- test/angular-gem_test.rb
|
121
|
+
- test/dummy/Rakefile
|
122
|
+
- test/dummy/app/assets/javascripts/application.js
|
123
|
+
- test/dummy/app/assets/stylesheets/application.css
|
124
|
+
- test/dummy/app/controllers/application_controller.rb
|
125
|
+
- test/dummy/app/helpers/application_helper.rb
|
126
|
+
- test/dummy/app/views/layouts/application.html.erb
|
127
|
+
- test/dummy/config.ru
|
128
|
+
- test/dummy/config/application.rb
|
129
|
+
- test/dummy/config/boot.rb
|
130
|
+
- test/dummy/config/database.yml
|
131
|
+
- test/dummy/config/environment.rb
|
132
|
+
- test/dummy/config/environments/development.rb
|
133
|
+
- test/dummy/config/environments/production.rb
|
134
|
+
- test/dummy/config/environments/test.rb
|
135
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
136
|
+
- test/dummy/config/initializers/inflections.rb
|
137
|
+
- test/dummy/config/initializers/mime_types.rb
|
138
|
+
- test/dummy/config/initializers/secret_token.rb
|
139
|
+
- test/dummy/config/initializers/session_store.rb
|
140
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
141
|
+
- test/dummy/config/locales/en.yml
|
142
|
+
- test/dummy/config/routes.rb
|
143
|
+
- test/dummy/public/404.html
|
144
|
+
- test/dummy/public/422.html
|
145
|
+
- test/dummy/public/500.html
|
146
|
+
- test/dummy/public/favicon.ico
|
147
|
+
- test/dummy/script/rails
|
148
|
+
- test/generators/controller_generator_test.rb
|
149
|
+
- test/generators/fixtures/application.js
|
150
|
+
- test/generators/generators_test_helper.rb
|
151
|
+
- test/generators/install_generator_test.rb
|
152
|
+
- test/test_helper.rb
|
129
153
|
- vendor/assets/javascripts/1.0.5/angular-1.0.5.js
|
130
154
|
- vendor/assets/javascripts/1.0.5/angular-resource-1.0.5.js
|
131
155
|
- vendor/assets/javascripts/1.0.5/angular-sanitize-1.0.5.js
|
@@ -752,6 +776,16 @@ files:
|
|
752
776
|
- vendor/assets/javascripts/1.2.1/angular-scenario.js
|
753
777
|
- vendor/assets/javascripts/1.2.1/angular-touch.js
|
754
778
|
- vendor/assets/javascripts/1.2.1/angular.js
|
779
|
+
- vendor/assets/javascripts/1.2.10/angular-animate.js
|
780
|
+
- vendor/assets/javascripts/1.2.10/angular-cookies.js
|
781
|
+
- vendor/assets/javascripts/1.2.10/angular-loader.js
|
782
|
+
- vendor/assets/javascripts/1.2.10/angular-mocks.js
|
783
|
+
- vendor/assets/javascripts/1.2.10/angular-resource.js
|
784
|
+
- vendor/assets/javascripts/1.2.10/angular-route.js
|
785
|
+
- vendor/assets/javascripts/1.2.10/angular-sanitize.js
|
786
|
+
- vendor/assets/javascripts/1.2.10/angular-scenario.js
|
787
|
+
- vendor/assets/javascripts/1.2.10/angular-touch.js
|
788
|
+
- vendor/assets/javascripts/1.2.10/angular.js
|
755
789
|
- vendor/assets/javascripts/1.2.2/angular-animate.js
|
756
790
|
- vendor/assets/javascripts/1.2.2/angular-cookies.js
|
757
791
|
- vendor/assets/javascripts/1.2.2/angular-loader.js
|
@@ -842,66 +876,28 @@ files:
|
|
842
876
|
- vendor/assets/javascripts/angular-scenario.js
|
843
877
|
- vendor/assets/javascripts/angular-touch.js
|
844
878
|
- vendor/assets/javascripts/angular.js
|
845
|
-
- MIT-LICENSE
|
846
|
-
- Rakefile
|
847
|
-
- README.md
|
848
|
-
- CHANGELOG.md
|
849
|
-
- test/angular-gem_test.rb
|
850
|
-
- test/dummy/app/assets/javascripts/application.js
|
851
|
-
- test/dummy/app/assets/stylesheets/application.css
|
852
|
-
- test/dummy/app/controllers/application_controller.rb
|
853
|
-
- test/dummy/app/helpers/application_helper.rb
|
854
|
-
- test/dummy/app/views/layouts/application.html.erb
|
855
|
-
- test/dummy/config/application.rb
|
856
|
-
- test/dummy/config/boot.rb
|
857
|
-
- test/dummy/config/database.yml
|
858
|
-
- test/dummy/config/environment.rb
|
859
|
-
- test/dummy/config/environments/development.rb
|
860
|
-
- test/dummy/config/environments/production.rb
|
861
|
-
- test/dummy/config/environments/test.rb
|
862
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
863
|
-
- test/dummy/config/initializers/inflections.rb
|
864
|
-
- test/dummy/config/initializers/mime_types.rb
|
865
|
-
- test/dummy/config/initializers/secret_token.rb
|
866
|
-
- test/dummy/config/initializers/session_store.rb
|
867
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
868
|
-
- test/dummy/config/locales/en.yml
|
869
|
-
- test/dummy/config/routes.rb
|
870
|
-
- test/dummy/config.ru
|
871
|
-
- test/dummy/public/404.html
|
872
|
-
- test/dummy/public/422.html
|
873
|
-
- test/dummy/public/500.html
|
874
|
-
- test/dummy/public/favicon.ico
|
875
|
-
- test/dummy/Rakefile
|
876
|
-
- test/dummy/script/rails
|
877
|
-
- test/generators/controller_generator_test.rb
|
878
|
-
- test/generators/fixtures/application.js
|
879
|
-
- test/generators/generators_test_helper.rb
|
880
|
-
- test/generators/install_generator_test.rb
|
881
|
-
- test/test_helper.rb
|
882
879
|
homepage: http://github.com/ets-berkeley-edu/angular-gem
|
883
880
|
licenses: []
|
881
|
+
metadata: {}
|
884
882
|
post_install_message:
|
885
883
|
rdoc_options: []
|
886
884
|
require_paths:
|
887
885
|
- lib
|
888
886
|
required_ruby_version: !ruby/object:Gem::Requirement
|
889
|
-
none: false
|
890
887
|
requirements:
|
891
888
|
- - ! '>='
|
892
889
|
- !ruby/object:Gem::Version
|
893
890
|
version: '0'
|
894
891
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
895
|
-
none: false
|
896
892
|
requirements:
|
897
893
|
- - ! '>='
|
898
894
|
- !ruby/object:Gem::Version
|
899
895
|
version: '0'
|
900
896
|
requirements: []
|
901
897
|
rubyforge_project:
|
902
|
-
rubygems_version:
|
898
|
+
rubygems_version: 2.2.2
|
903
899
|
signing_key:
|
904
|
-
specification_version:
|
900
|
+
specification_version: 4
|
905
901
|
summary: Bootstrap angularjs in a rails project
|
906
902
|
test_files:
|
907
903
|
- test/angular-gem_test.rb
|