aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive
AgeCommit message (Collapse)Author
2013-07-11docs(ngList): fix example and add e2e testIgor Minar
2013-07-11style(input): remove wsIgor Minar
2013-07-08docs(ngModelController): provide a more intuitive examplePete Bacon Darwin
The example directive, using contenteditable was not showing required even if you cleared the content from it. Closes #3156
2013-07-04docs(input): ng-model doesn't work well with isolated scope directivebasarat
Closes #3123
2013-06-27docs(ngBind): clarify some of the writingAndrew Peterson
2013-06-27docs(ngPluralize): improve wordingAndrew Peterson
2013-06-13docs(select): fix typos in ngOptionsMisha Moroshko
2013-06-12docs(FormController): add methods for FormControllerDean Sofer
2013-06-12docs(ngModelController): improve $parsers/$formatters with exampleDean Peterson
2013-06-12docs(ngClass): fix minor typo.Ore Landau
2013-06-11docs(ngSubmit): clarify that there must be no `action` attributePete Bacon Darwin
2013-06-04docs(ngTransclude): fix outdated scope definition in exampleMarcin Wosinek
2013-06-04docs(ngClass): clarify the use of object mapLuc Morin
2013-06-04docs(input): provide explanation of how ngModel will affect the local scopeLuc Morin
2013-05-18doc(ngModel): $setViewValue calls all parsers, not formattersJoakim Blomskøld
2013-05-16docs(ngCsp): add more informative detailsDean Sofer
Transferred from https://github.com/angular/angular.js/wiki/Using-AngularJS-in-a-Chrome-Extension-environment
2013-05-10fix(ngPluralize): handle the empty string as a valid overrideLucas Galfasó
Fix the check for overrides so it is able to handle the empty string Closes #2575
2013-05-07fix(select): ensure empty option is not lost in IE9Chad Smith
Fix a check inside render for select elements with ngOptions, which compares the selected property of an element with it's desired state. Ensure the placeholder, if available, is explicitly selected if the model value can not be found in the option list. Without these fixes it's up to the browser implementation to decide which option to choose. In most browsers, this has the effect of displaying the first item in the list. In IE9 however, this causes the select to display nothing. Closes #2150, #1826
2013-05-07doc(input): fix small typo in code exampleHamish Macpherson
2013-04-29refact(ngClass): improve performance through bitwise operationsRobin Böhm
Change modulo % 2 operations to bitwise & 1 Read about this in Nicholas C. Zakas book "High Performance JavaScript"(ISBN: 978-0-596-80279-0) Use the Fast Parts --> Bitwise Operators --> Page 156++ Proven at http://jsperf.com/modulo-vs-bitwise/11
2013-04-19docs(input): fix typo on max attributeleesei
2013-04-19docs(select): fix attribute documentationShyam Seshadri
Select documentation was still referring to binding to name, when it should be ng-model instead. Fixed it.
2013-04-19docs(ngBind): fix typoMichal Reichert
2013-04-17fix(ngModel): use paste/cut events in IE to support context menuMark Dalgleish
In IE the model is not updated when the input value is modified using the context menu, e.g. pasting from the clipboard, or cutting all or part of the current value. To capture these changes, we bind to the proprietary 'paste' and 'cut' events. Closes #1462
2013-04-17doc(ngClassEven): make consistent with ngClassOddes128
2013-04-16fix(ngClass): should remove classes when object is the same but property has ↵Pete Bacon Darwin
changed If you wire up ngClass directly to an object on the scope, e.g. ng-class="myClasses", where scope.myClasses = { 'classA': true, 'classB': false }, there was a bug that changing scope.myClasses.classA = false, was not being picked up and classA was not being removed from the element's CSS classes. This fix uses angular.equals for the comparison and ensures that oldVal is a copy of (rather than a reference to) the newVal.
2013-04-13docs(ngController): fix docs link to api/ng.$routebrandonjp
2013-04-04refactor(ngRepeat): make use of declared variableMark Chapman
Rename unused arrayLength variable to arrayBound and use it inside loop
2013-04-01docs(ngSwitch): improve the @usage exampleIgor Minar
2013-03-20chore(select): Fix ngOptions regexp capture comment.Arlen Christian Mart Cuss
Off-by-one error.
2013-03-08docs(ngCloak): update the CSS rule with data-ng-cloakChristian Vuerings
2013-02-20fix($compile): sanitize values bound to a[href]Igor Minar
2013-02-18fix(ngClass): keep track of old ngClass value manuallyPer Rovegård
ngClassWatchAction, when called as a $watch function, gets the wrong old value after it has been invoked previously due to observation of the interpolated class attribute. As a result it doesn't remove classes properly. Keeping track of the old value manually seems to fix this. Closes #1637
2013-02-18fix(compile): should not leak memory when there are top level empty text nodesPete Bacon Darwin
The change to prevent <span> elements being wrapped around empty text nodes caused these empty text nodes to have scopes and controllers attached, through jqLite.data() calls, which led to memory leaks and errors in IE8. Now we exclude all but document nodes and elements from having jqLite.data() set both in the compiler and in ng-view. Fixes: #1968 and #1876
2013-02-14fix(a): workaround IE bug affecting mailto urlsIgor Minar
Apparently there is a really weird bug in IE6-8 that causes anchor textContent to be reset with href content when both contain @ symbol. Inserting a bogus comment node into all anchor elements in IE works around this browser bug. I'm fixing the issue via directive because that way we'll fix it for jQuery as well. I fixed an e2e test too because it was incorrect. Closes #1949
2013-02-14fix(ngSwitch): make ngSwitch compatible with controller BC moduledeboer
add a $scope to the ngSwitch's controller to fool the controller BC (backwards compatibility) module used by DFA.
2013-02-04docs(ngClass): fix typo in descriptionPowerKiKi
2013-01-26docs(a): escape sample code in ng a directiveFred Sauer
2013-01-18fix(ngSwitch): don't leak when destroyed while not attacheddanilsomsikov
The leak can occur when ngSwich is used inside ngRepeat or any other directive which is destroyed while its transcluded content (which includes ngSwitch) is not attached to the DOM. Refactor ngSwitch to use controller instead of storing data on compile node. This means that we don't need to clean up the jq data cache. Controller reference is released when the linking fn is released. Closes #1621
2013-01-17fix(ngRepeat): correctly apply $last if repeating over objectPete Bacon Darwin
If the $last property is calculated from the original collectionLength on an object and properties starting with $ were filtered out, then $last is never applied and $middle is applied erroniously. Closes #1789
2013-01-08revert: fix(a): prevent Opera from incorrectly navigating on link clickIgor Minar
This reverts commit c81d8176cc55cd15acae05259ead73f90a01f0b7. This commit causes several issues (#1651, #1674, #1662) and doesn't even contain a test that proves that anything on Opera got actually fixed. If the original Opera resurfaces, we'll fix it properly.
2013-01-04docs(form): minor form doc and example fixesJonathan Card
Form documentation fixes: - Fix broken form example in docs - A few small other corrections in form docs.
2012-12-18docs(ngView): fix code example (change template to templateUrl)Pawel Kozlowski
Closes #1715
2012-12-05fix(select): support optgroup + select[multiple] combo_pants
Closes #1553
2012-11-26fix(ngClassOdd/ngClassEven): support shrinking/reordering in repeatersIgor Minar
We need to watch $index in addition to cssClasses because only then we can correctly respond to shrinking or reordered repeaters. Closes #1076
2012-11-26fix(ngRepeat): support mostly-stable repeating for primitivesIgor Minar
I'm reverting changes that were originally done to ngRepeat to fix #933, because these are now not necessary after the previous changes to keep ngModel always synced with the DOM.
2012-11-26fix(ngModel): sync ngModel state with scope stateIgor Minar
In cases when we reuse elements in a repeater but associate them with a new scope (see #933 - repeating over array of primitives) it's possible for the internal ngModel state and the scope state to get out of sync. This change ensure that the two are always sync-ed up even in cases where we reassociate an element with a different (but similar) scope. In the case of repeating over array of primitives it's still possible to run into issue if we iterate over primitives and use form controls or similar widgets without ngModel - oh well, we'd likely need a special repeater for primitives to deal with this properly, even then there might be cornercases. Closes #933
2012-11-26fix(ngRepeat): attempt to simplify and improve existing fix for #933Igor Minar
I'm keeping this in for future reference. The issue with this solution is that if we shift() the first item in the array, the whole repeater DOM will be rebuilt from scratch, we need to do better than that.
2012-11-25docs(api): add ngRequired to input/select/textarea directivesDean Sofer
Closes #1202
2012-11-11docs(ngList): fix typoJosh Adams