aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2014-03-18feat(ngMock.$httpBackend): added support for function as URL matcherCaio Cunha
It's now possible to pass a function to match the URL in $httpBackend mocked expectations. This gives a more sophisticate control over the URL matching without requiring complex RegExp mantainance or the workaround of creating an object with a `test` function in order to mimic RegExp interface. This approach was suggested in [this thread](https://groups.google.com/d/msg/angular/3QsCUEvvxlM/Q4C4ZIqNIuEJ) Closes #4580
2014-03-18feat($compile): add support for $observer deregistrationCaio Cunha
In order to make the behavior compatible with $rootScope.$watch and $rootScope.$on methods, and make it possible to deregister an attribute observer, Attributes.$observe method now returns a deregistration function instead of the observer itself. BREAKING CHANGE: calling attr.$observe no longer returns the observer function, but a deregistration function instead. To migrate the code follow the example below: Before: ``` directive('directiveName', function() { return { link: function(scope, elm, attr) { var observer = attr.$observe('someAttr', function(value) { console.log(value); }); } }; }); ``` After: ``` directive('directiveName', function() { return { link: function(scope, elm, attr) { var observer = function(value) { console.log(value); }; attr.$observe('someAttr', observer); } }; }); ``` Closes #5609
2014-03-18fix(Scope): $watchCollection should call listener with oldValueIgor Minar
Originally we destroyed the oldValue by incrementaly copying over portions of the newValue into the oldValue during dirty-checking, this resulted in oldValue to be equal to newValue by the time we called the watchCollection listener. The fix creates a copy of the newValue each time a change is detected and then uses that copy *the next time* a change is detected. To make `$watchCollection` behave the same way as `$watch`, during the first iteration the listener is called with newValue and oldValue being identical. Since many of the corner-cases are already covered by existing tests, I refactored the test logging to include oldValue and made the tests more readable. Closes #2621 Closes #5661 Closes #5688 Closes #6736
2014-03-18fix(angular.bootstrap): only allow angular to load onceSiddique Hameed
This is hard to test as a unit-test, since it involves the actual loading of angular, but it turns out that it is easy to test using a protractor e2e test. Closes #5863 Closes #5587
2014-03-17style($templateCache): remove trailing whitespaceCaitlin Potter
This was introduced by 2ca6d650e8a13cee28f11c38622cab231787325f, somewhat inexplicably as I had run grunt ci-checks locally. But regardless, this should fix this up.
2014-03-17docs($templateCache): use GFM example format rather than <pre> tagsJesse Palmer
Updated example formatting. Closes #6068
2014-03-17docs(loader): add annotations to exampleEdward Brey
2014-03-17docs($cookies): cookies serializer only supports stringsTyler Kellogg
Closes #6705
2014-03-17docs(ngView): remove global controller definitionsunicodesnowman
instead use angular modules also fix formatting
2014-03-17docs(booleanAttrs): fix typoSekib Omazic
2014-03-17docs(ngForm): remove duplicate @param annotationDavid Rogers
When the example for `ngAnimate` was added in commit:3344396, the `@param name` annotation was unintentionally duplicated. Remove this duplicate. Closes #6720
2014-03-17fix(jqLite): traverse `host` property for DocumentFragment in inheritedData()Caitlin Potter
If dealing with a document fragment node with a host element, and no parent, use the host element as the parent. This enables directives within a Shadow DOM or polyfilled Shadow DOM to lookup parent controllers. Closes #6637
2014-03-17docs(ngInclude): make the quote type explicitMark Jones
2014-03-17docs($http): update shortcut method descriptionlinclark
Update docs to reflect that $http no longer requires passing in an HTTP method, as changed in #6401.
2014-03-17docs(ngRoute): remove global controller syntax in the examplebradwheel
2014-03-15fix($http): allow sending Blob data using $httpBruno Baia
Closes #5012
2014-03-14fix($http): don't covert 0 status codes to 404 for non-file protocolsPawel Kozlowski
PR #5547 introduced conversion of all 0 status codes to 404 for cases where no response was recieved (previously this was done for the file:// protocol only). But this mechanism is too eager and masks legitimate cases where status 0 should be returned. This commits reverts to the previous mechanism of handling 0 status code for the file:// protocol (converting 0 to 404) while retaining the returned status code 0 for all the protocols other than file:// Fixes #6074 Fixes #6155
2014-03-14fix($$rAF): always fallback to a $timeout incase native rAF isn't supportedMatias Niemelä
Closes #6654
2014-03-14fix(ngAnimate): setting classNameFilter disables animation inside ng-ifTomer Chachamu
Closes #6539
2014-03-13docs(ngMock): grammar nitpick.Nick Heiner
2014-03-13docs($resource): fix example using promiseWesley Cho
2014-03-13fix (ngAnimate): fix requestAnimationFrame for old version of FirefoxThomas Belin
The recent $$RAFProvider which is a wrapper for the native requestAnimationFrame method doesn't use the mozRequestAnimationFrame. Old versions of FF (20 for example) crash if ngAnimate is included No breaking changes and fix issue https://github.com/angular/angular.js/issues/6535 Closes #6535 Closes #6540
2014-03-10docs(route.js): changed html entities lt gt to < and >Louis Haußknecht
2014-03-10docs(ngRepeat): Separate animation class in new linesBasem Mostafa
Moving to new lines & making it bold to avoid confusion when they r all in same line without any separation Closes #6633
2014-03-10docs($route): change routes property to correct typedoodeec
change $route.routes property type to Object, property is marked incorrectly as an Array Closes #6552
2014-03-10feat(): whitelist blob urls for sanitization of data-bound image urlsIgor Minar
Closes #4623
2014-03-07docs($sce): correct typoSekib Omazic
`consititute` -> `constitute` Typo fixed Closes #6607
2014-03-07docs(ngBind): fix typoSekib Omazic
`preferrable` -> `preferable` Typo fixed Closes #6606
2014-03-07style(jsdoc tags): remove/ammend invalid tagsPeter Bacon Darwin
As highlighted by the new sterner dgeni.
2014-03-07fix($compile): support templates with thead and tfoot root elementsLucas Galfasó
If the first element in a template is a <thead> or a <tfoot>, then use the existing logic to handle table elements compilation. Closes #6289
2014-03-07docs($route): fix formatting of example codePeter Bacon Darwin
2014-03-06feat(input): support types date, time, datetime-local, month, weekBen Lesh
On older browser that don't support the new HTML5 inputs and display a text input instead, the user is required to enter the data in the corresponding ISO format. The value in `ng-model` will always be a date. E2e tests contain a workaround to a bug in webdriver, see https://github.com/angular/protractor/issues/562. Also adds weeks as format to the `dateFilter`. Related to #757. Closes #5864.
2014-03-06fix(style): expressions in style tagsSekib Omazic
Enable data-binding for style tags. Note: this feature does not work on IE8. Closes #2387 Closes #6492
2014-03-05style: enable jscs requireLeftStickedOperators ruleTimothée Jeannin
Closed #6544.
2014-03-02docs(loader): remove duplicate "the"Ole Michaelis
Typo fixup Closes #6521
2014-03-02docs(ngView): rename controller suffix in ngView exampleGronblom Sam
- According to https://github.com/angular/angular.js/blob/5bf81bc111a866ec65ef86c01336911e577df5df/docs/content/guide/controller.ngdoc#L166 Ctrl should be the suffix for a controller Closes #5817
2014-03-02docs($interval): cancel() takes a promise not a numberMikeMcElroy
Closes #6485
2014-03-02docs(*): ensure jsdoc type expressions are validPeter Bacon Darwin
2014-03-02docs(loader): change 'MyModule' -> 'myModule'Paolo Moretti
Closes #5393
2014-03-02docs(ngMock): fixes in flush() documentationthenickcox
The docs for the `flush()` method contained a few grammatical errors and were awkwardly worded. Change the explanation of the method to remove errors and read more naturally. Closes #4886
2014-02-28style: enable jscs requireRightStickedOperators ruleIgor Minar
2014-02-28docs(forms): generated CSS classes for forms and inputs must have a ng prefixMatias Niemelä
2014-02-28docs(input): update $parsers NgModelController docJason Winnebeck
Make it clear that the result of the $parsers pipeline is what goes to the model value. Closes #5708
2014-02-28docs(ngAnimate): add missing 'super' to addClassnosideeffects
2014-02-28fix($animate): delegate down to addClass/removeClass if setClass is not foundMatias Niemelä
Closes #6463
2014-02-28feat($animate): animate dirty, pristine, valid, invalid for form/fieldsYves Brissaud
Add css animations when form or field status change to/from dirty, pristine, valid or invalid. This works like animation system present with ngClass, ngShow, etc. Closes #5378
2014-02-27docs(core): update fromJson return valueslinclark
Dates are not returned, so remove Date from list of return values. Closes #3070
2014-02-27fix(jqLite): properly toggle multiple classesPawel Kozlowski
Fixes #4467 Closes #6448
2014-02-27chore(animate): fix typo in a commentLajos Veres
2014-02-27docs($sce): fix typoLajos Veres