aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2013-02-14docs($parse): document function argument types, fix minor typoDaniel Luz
2013-02-14fix($rootScope): minor typo fixesDaniel Luz
2013-02-14feat(noConflict): restore previous angular namespace referenceJames Morrin
2013-02-14fix(resource): Update RegExp to allow urlParams with out leading slashFredrik Bonander
Will allow reoucese to be loaded from a relative path Example: var R = $resource(':path'); R.get({ path : 'data.json' }); Example usage: Load resources in applications not using webserver, ie local webapp in on a tablet.
2013-02-14fix(compiler): Allow startingTag method to handle text / comment nodesShyam Seshadri
2013-02-14feat(filter): Add comparison function to filterRosina Bignall
Add optional comparator function argument to $filter('filter')(array, expression, comparator) such that the comparator function is used to compare the values and predicates. When true, defaults to equality. When missing defaults to substring matching.
2013-02-14fix(numberFilter): fix formatting when "0" passed as fractionSizeKury Kruitbosch
When checking to add decimal and trialing 0s number filter used to check trueness of fractionSize. "0" evaluating to true causes "123" to return "123."
2013-02-14docs($resource): fix missing punctuationCedric Soulas
2013-02-11feat($resource): expose promise based api via $then and $resolvedIgor Minar
Expose $then and $resolved properties on resource action return values which allow checking if a promise has been resolved already as well as registering listeners at any time of the resource object life-cycle. This commit replaces unreleased commit f3bff27460afb3be208a05959d5b84233d34b7eb which exposed unintuitive $q api instead and didn't expose important stuff like http headers.
2013-02-11revert: refactor(angular.copy): use slice(0) to clone arraysIgor Minar
This reverts commit 28273b7f1ef52e46d5bc23c41bc7a1492cf23014o. slice(0) doesn't perform deep copy of the array so its unsuitable for our purposes.
2013-02-11refactor(angular.copy): use array.length=0 to empty arraysIgor Minar
2013-02-11refactor(angular.copy): use slice(0) to clone arraysIgor Minar
slice(0) is way faster on most browsers
2013-02-11fix(angular.forEach): correctly iterate over objects with length propIgor Minar
Should handle JQLite, jQuery, NodeList and other objects like arrays but not other generic objects or instances of user defined types with length property. Closes #1840
2013-02-07docs($q): fix typosradu
2013-02-07fix(scenario): include error messages in XML outputJulie
Fix the XML output of scenario tests so that it properly includes error messages from failing specs.
2013-02-07fix($compile): rename $compileNote to compileNodeEnrique Paredes
Directives was observing different instances of Attributes than the one that interpolation was registered with because we failed to realize that the compile node and link node were the same (one of them was a wrapper rather than raw node) Closes #1941
2013-02-07fix($cookies): set cookies on Safari&IE when base[href] is undefinedFredrik Bonander
Safari and IE don't like being told to store cookies with path set to undefined. This change ensures that if base[href] (from which cookie path is derived) is undefined then the cookie path defaults to ''. The test verifies that the cookie is set instead of checking that cookie has correct path, this is due to that cookie meta information is not avabile once the cookie is set. Closes #1190, #1191
2013-02-07feat(dateFilter): add `[.,]sss` formatter for millisecondsMaxim Grach
Also Implement getMilliseconds() method of TzDate and add test for this in ngMock.
2013-02-07feat($http): allow overriding the XSRF header and cookie nameSam McCall
Add 'xsrfCookieName' and 'xsrfHeaderName' property to $httpProvider.defaults and http config object, which give the name of the cookie the XSRF token is found in, and the name of the header it is sent in, respectively. This allows interop with servers with built-in XSRF support that use different names. The defaults match the current hard-coded values of 'XSRF-TOKEN' and 'X-XSRF-TOKEN'.
2013-02-07fix(date): invert timezone sign and always display signPhilip Roberts
This commit fixes #1261 and #1532. This covers two separate issues: - Positive timezones were being formatted without a leading `+` resulting in a formatting string like: "HH:MM:ssZ" giving "12:13:141000" instead of "12:13:14+1000". Fixed by checking if timezone is > 0 and adding a leading "+". - Timezone output signs were inverted. mock.TzDate expects the timezone _offset_ as it's first argument, _not_ the timezone. This means that a mock.TzDate with a positive offset should result in a date string with a negative timezone, and vice-versa. Closes #1261, #1532
2013-02-05docs(ngApp): fix typoradu
2013-02-04docs(ngClass): fix typo in descriptionPowerKiKi
2013-01-30feat(Scope): expose transcluded and isolate scope info for batarangBrian Ford
test($compile): add test for exposing transclude and isolate scope info to batarang
2013-01-29docs($cookies): added example to $cookies api docsDean Sofer
Better than nothing.
2013-01-29docs(nextUid): fix typoradu
Update src/Angular.js removed redundant 'the' from nextUid()'s ngdoc
2013-01-29docs(Scope): fix argument docs for $onFred Sauer
2013-01-29refactor(Angular.js): prevent Error variable name leak in testsmetaweta
Remove var Error = window.Error window.Error is a read-only property in Apps Script. Igor says, "we should just delete that line instead. I think it was misko's attempt to get better closure minification, but it turns out that it's actually hurting us after gzip (I verified it)."
2013-01-26docs(a): escape sample code in ng a directiveFred Sauer
2013-01-24fix(docs): properly generate angular.js urls in doc examplesIgor Minar
2013-01-24docs(date): add missing doc about TZ behaviorIgor Minar
2013-01-24docs($injector): clarify $inject property descriptionVineet Kumar
Section heading about `$inject` property refers to it as `$injector` property.
2013-01-23feat(resource): add $q/$resorved property to ResourcePartap Davis
2013-01-22docs(ngOpen): fix typo in api docsIgor Minar
2013-01-22revert: fix($resource): Route constructor, updated RegExpIgor Minar
This reverts commit 06ed8ef0127bf80610eba17b5021d1f483d0b0bf. The reverted commit causes regressions. See comments in the PR: https://github.com/angular/angular.js/pull/1402#issuecomment-12575399
2013-01-22fix(angular.equals): relax the comparison for undefined propertiesIgor Minar
in 5ae63fd3 the comparison was made consistent but strict, so that angular.equals({}, {foo: undefined}) // always returns false this turns out to cause issues for data that is being roundtripped via network and serialized via JSON because JSON.stringify serializes {foo: undefined} as {}. Since angular.equals() behaved like this before the 5ae63fd3 in 50% of the cases, changing the behavior in this way should not introduce any significant issues. Closes #1648
2013-01-20docs(jqLite): fix typosergiopantoja
2013-01-18fix($resource): Route constructor, updated RegExpFredrik Bonander
Update RegExp to allow urlParams with out leading slash (/). - Will allow reoucese to be loaded from a relative path Example: var R = $resource(':path'); R.get({ path : 'data.json' }); Example usage: Load resources in applications not using webserver, ie local webapp in on a tablet.
2013-01-18feat(scenario): add mouseover method to the ngScenario dslPedro Del Gallego
2013-01-18feat(route): Allow using functions as template params in 'when'Luis Ramón López
2013-01-18feat(directive): added ng-open boolean directiveDavid Chang
Closes# 1797 add ng-open attribute
2013-01-18fix(ngResource): correct leading slash removal.pavelgj
Fixed an issues with ngResource param substitution where it was incorrectly removing leading slash when param was followed by a non-slash character. Ex: '/:foo/:bar.baz/:aux' params = { foo: 'aaa', bar: undefined, aux: undefined } The above params were incorrectly producing '/aaa.baz' but now it results in '/aaa/.baz'.
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-17feat(ngResource): support all $http.config actionsMisko Hevery
This allows the transformation of the $http request in both directions, headers, caching, and timeout.
2013-01-17docs(exceptionHandler): document testingFred Sauer
Update src/ng/exceptionHandler.js Here's an iniitla attempt at documenting how one might write a test using $exceptionHandlerProvider. The key take-away is the use of this pattern: it(...  module(...    $exceptionHandlerProvider.mode('log');  });  inject(...  ); });
2013-01-17feat($parse): allow strict equality in angular expressionsJeremy Tymes
Allows the parser to parse strict equality and inequality in angular expressions. Closes #908
2013-01-17docs(rootScope): correct code examplesMatthew Browne
2013-01-18docs(ngMock.$httpBackend): fix variable declarationFred Sauer
2013-01-17fix(angular.equals): consistently compare undefined object propsIgor Minar
previously: a = {}; b = {x:undefined}; angular.equals(a, b) == angular.equals(b, a) // returns false. both should return false because these objects are not equal. unlike in implemented in #1695 the comparison should be stricter and return false not true. if we need to relax this in the future we can always do so. Closes #1648
2013-01-17feat($log): add $log.debug()nlaplante
New debug() method with suppressable output via $logProvider.debugEnabled() Closes #1592
2013-01-17fix($compile): do not wrap empty root text nodes in spansPete Bacon Darwin
Closes #1059