aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2013-01-03docs($http): clarify documentation on error status codesPer Rovegård
Modify the documentation for $http to correspond to what Angular considers a success status code. Closes #1693
2012-12-20feat($timeout-mock): add verifyNoPendingTasks methodpetrovalex
added verifyNoPendingTasks method, which throws error if not all deferred tasks have been flushed Closes #1245
2012-12-19docs(anchorScroll): correct word "location"Murilo da Silva
2012-12-19feat(limitTo): limitTo filter accepts stringsJeremy Tymes
This allows strings to be filtered by limitTo, using the same methods Closes #653
2012-12-18feat(directive): ng:keydown, ng:keyupMark Nadig
New directives for binding to keydown and keyup events. Closes #1035
2012-12-17docs(ngView): fix code example (change template to templateUrl)Pawel Kozlowski
Closes #1715
2012-12-14docs(q): added testing informationMiško Hevery
2012-12-14fix($route): correctly extract $routeParams from urlsGonzalo Ruiz de Villa
Routes like '/bar/foovalue/barvalue' matching '/bar/:foo/:bar' now are well mapped in $routeParams to: {bar:'barvalue', foo:'foovalue'} Closes: #1501 Signed-off-by: Gonzalo Ruiz de Villa <gonzaloruizdevilla@gmail.com>
2012-12-09docs($resource): document port number escaping and fix typoJuha Syrjälä
Closes #1243
2012-12-07docs($q): typo fix - programing -> programmingEric Case
2012-12-06docs($http): fix link typo in $http docJeremy Tymes
Should be $httpBackend instead of $httpBacked Closes #1516
2012-12-06docs(mocks): update src/ngMock/angular-mocks.js documentationFred Sauer
Clarify how to use `$exceptionHandlerProvider.mode('log')` in tests
2012-12-06docs(mocks): fix documentation bug: angular.mock.debugFred Sauer
2012-12-05chore(bootstrap-prettify): update urls to code.angularjs.orgIgor Minar
Closes #1599
2012-12-05fix(select): support optgroup + select[multiple] combo_pants
Closes #1553
2012-12-01feat(e2eRunner): fail when an option to select does not existStephane Bisson
2012-12-01fix($injector): provider can now be defined in the array formatSudhir Jonathan
`injector.instantiate` is now called for arrays too, instead of only for functions. Closes #1452
2012-11-30fix($resource): HTTP method should be case-insensitiveSudhir Jonathan
Perform call `angular.uppercase` on all given action methods. Closes #1403
2012-11-30refactor($resource): fix indentation and move a method definitionCezar Berea
Moved Resource.bind out of the actions forEach
2012-11-30fix(Scope): ensure that a scope is destroyed only onceIgor Minar
Due to bd524fc4 calling $destroy() on a scope mupltiple times cases NPE. Closes #1627
2012-11-28feat($resource): allow dynamic default parametersPascal Corpet
Default resource params can now be calculated at runtime if defined via a function.
2012-11-26fix($http): only set X-XSFR-TOKEN header for same-domain requestRado Kirov
This is needed to prevent CORS preflight checks. The XSFR token is quite useless for CORS requests anyway. BREAKING CHANGE: X-XSFR-TOKEN is no longer send for cross domain requests. This shouldn't affect any known production service. Closes #1096
2012-11-26fix($http): remove 'X-Requested-With' from header defaultsRado Kirov
X-Requested-With header is rarely used in practice and by using it all the time we are triggering preflight checks for crossdomain requests. We could try detecting if we are doing CORS requests or not, but it doesn't look like it's worth the trouble. BREAKING CHANGE: X-Requested-With header is not set by $http service any more. If anyone actually uses this header it's quite easy to add it back via: ``` myAppModule.config(['$httpProvider', function($httpProvider) { $httpProvider.defaults.headers.common["X-Requested-With"] = 'XMLHttpRequest'; }]); ``` Closes #1004
2012-11-26fix($location): reset $location.$$replace with every watch callRado Kirov
Closes #1111
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-26style(jqLite): better variable namesIgor Minar
selector => cssClasses
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-26feat(form): add ability to reset a form to pristine statePawel Kozlowski
Retting a form to pristine state will cause all of the nested form and form controls to be recursively reset as well. Closes #856
2012-11-26fix(jqLite): support append on document fragmentIgor Minar
previously jquery didn't support append on this node type, now it does (since 1.8.x) so I'm adding this to jqlite as well.
2012-11-26fix(jqLite): fire $destroy event via triggerHandlerIgor Minar
in jQuery 1.8.x the data() data structure is changed and events are not accessible via data().events. Since all we need is to trigger all event handlers, we can do so via triggerHandler() api instead of mocking with the internal jQuery data structures. This fix was originally proposed by PeteAppleton via PR #1512. Closes #1512
2012-11-26feat(jqLite): add triggerHandler()Igor Minar
we need triggerHandler() to become jQuery 1.8.x compatible. this is not fully featured triggerHandler() implementation - it doesn't bother creating new DOM events and passing them into the event handlers. this is intentional, we don't need access to the native DOM event for our own purposes and creating these event objects is really tricky.
2012-11-25fix(Scope): allow removing a listener during eventVojta Jina
2012-11-25docs(api): add ngRequired to input/select/textarea directivesDean Sofer
Closes #1202
2012-11-25feat($cacheFactory): cache.put now returns the added valueJP Sugarbroad
This allows common programming patterns to be expressed with more concise code. See #1583 for code examples.
2012-11-24fix($http): config.param should expand array values properlyTom Davis
Today, calling e.g. $http(url, { params: { a: [1,2,3] } }) results in a query string like "?a=%5B1%2C2%2C3%5D" which is undesirable. This commit enhances buildURL to createa query string like "?a=1&a=2&a=3". BREAKING CHANGE: if the server relied on the buggy behavior then either the backend should be fixed or a simple serialization of the array should be done on the client before calling the $http service. Closes #1363
2012-11-24feat(linky): allow optional 'target' argumentZach Dexter
Closes #1443
2012-11-24fix($cacheFactory): return undefined when removing non-existent entryJeremy Tymes
Instead of throwning an exception, remove should return undefined when cache entry to be removed doesn't exist. Closes #1497
2012-11-24fix($resource): prevent default params to be shared between actionsAdrian Gheorghe
Having a $resource defined as: var R = $resource('/Path', {}, { get: {method: 'GET', params: {objId: '1'}}, perform: {method: 'GET'} }); was causing both actions to call the same URI (if called in this order): R.get({}); // => /Path?objId=1 R.perform({}); // => /Path?objId=1
2012-11-21docs(): Fix a couple of typos in the documentationKris Jenkins
2012-11-17docs($q): fix missing bracket in the exampleUri Goldshtein
2012-11-15fix(CSP): update to the latest CSP apiIgor Minar
window.SecurityPolicy.isActive() is now window.securityPolicy.isActive since this is available only in Chrome Canary which has already been updated, we can safely make this change without worrying about backwards compatilibty. Closes #1577
2012-11-14fix($rootScope): workaround for Chrome's memleakIgor Minar
Under certain circumstances chrome fails to GC scopes because of buggy optimizations and caching. Nulling out references to (not from!) other scopes helps Chrome to realize that this object should be GC-ed. This is really just a workaround as the real problem needs to be fixed in Chrome. See discusstion at: https://github.com/angular/angular.js/issues/1313#issuecomment-10378451 And chrome bug at: https://code.google.com/p/v8/issues/detail?id=2073 Closes #1313
2012-11-11docs(angular.module): improve angular.Module#run docsHaralan Dobrev
2012-11-11docs($timeout): set return type to Promise instead of *.Wes Alvaro
The cancel function accepts a Promise, but the timeout function fails to specify returning a Promise.
2012-11-11docs(ngList): fix typoJosh Adams
2012-11-11docs(encodeUriSegment): fix typoJosh Adams
2012-11-11docs(ngHide): Fix typo and make it more in line with ngShowChristian Vuerings
2012-11-11feat($sanitize): support telephone linksAnna Vester
Per http://www.ietf.org/rfc/rfc3966.txt support tel: links