aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2013-07-21docs(input): fix exampleJérémy
The input [number] error spans did not show on the example, as they were relying on an non-existing property (myForm.list.$error) vs the working property (myForm.input.$error)
2013-07-21docs($window): improve style and clarify wordingDavid Sanders
2013-07-21docs(ngRepeat): add example for filters in conjunction with `track by`Peter Fern
2013-07-19fix(core): parse URLs using the browser's DOM APIChirayu Krishnappa
2013-07-18feat(Angular): provide minErr as public propertyPete Bacon Darwin
This allows us to use minErr in other modules, such as resource and sanitize.
2013-07-18chore(sanitize): use minErr to throw exceptionPete Bacon Darwin
2013-07-18chore(resource): use minErr to throw exceptionPete Bacon Darwin
2013-07-18docs(jqLite): document "$destroy" eventPete Bacon Darwin
2013-07-18fix($compile): allow data: image URIs in img[src]Chirayu Krishnappa
Ref: 1adf29af13890d61286840177607edd552a9df97 BREAKING CHANGE: img[src] URLs are now sanitized via a separate whitelist regex instead of sharing the whitelist regex with a[href]. With this change, img[src] URLs may also be data: URI's matching mime types image/*. mailto: URLs are disallowed (and do not make sense for img[src] but were allowed under the a[href] whitelist used before.)
2013-07-18feat(directive): ng:focus, ng:blurAndreas Sander
Added directives for focus and blur events. Closes #1277
2013-07-17docs($templateCache): add examples of usageSpencer
2013-07-17docs(dateFilter): fix typosBruno Coelho
Fix closing parenthesis, quotes around string literal and remove trailing whitespace. Closes #3250
2013-07-15fix($animator): ensure animations are always disabled for an element that is ↵Matias Niemelä
not attached to the DOM
2013-07-14feat($q): added support to promise notificationCaio Cunha
It is now possible to notify a promise through deferred.notify() method. Notifications are useful to provide a way to send progress information to promise holders.
2013-07-14feat(ngPluralize): add alternative mapping using attributesLucas Galfasó
Add an alternative way to define a mapping for ng:pluralize using attributes instead of the `when` attribute Closes #2454
2013-07-14style(ngMock): add missing whitespaceDavid
2013-07-13fix(angular.equals): add support for regular expressionsBen Ripkens
Regular expression objects didn't used to be considered to be equal when using 'angular.equals'. Dirty checking therefore failed to recognize a property modification. Closes #2685
2013-07-12fix($http): allow interceptors to completely override headersIgor Minar
Closes #2770
2013-07-12feat(Angular.js): skip JSON.stringify for undefinedGreg Thornton
Return early in `angular.toJson` if the object to be stringified is `undefined`. IE8 stringifies `undefined` to `'undefined'` whereas other browsers return `undefined`. This normalizes behavior and passes currently broken unit tests in IE8.
2013-07-12feat($resource): support an unescaped URL portLeandro Ostera
The colon character is used to identify parameters in $resource. This meant that we had to escape the colon used in a port. It turns out that this is not necessary if we assume that parameter names cannot consist of only digits. If the parameter consists only of numbers, then it's a port. Closes #2778
2013-07-12fix(ngScenario): select().option(val) should prefer exact value matchStephen Merity
With select(...).option(val) it previously would select the first node which contains the value, even if an exact match was available. This fix prefers exact matches if available, otherwise it reverts to the previous 'contains' behaviour for backwards compatibility. Closes #2856
2013-07-12fix(sanitize): match URI schemes case-insensitivelyPete Bacon Darwin
According to RFC 3986 (http://tools.ietf.org/html/rfc3986#section-3.1) schemes such as http or mailto are case-insensitive. So links such as http://server/ and HTTP://server/ are valid and equivalent. Closes #3210
2013-07-11fix(ngSubmit): expose $event to ngSubmit callbackWesley Cho
2013-07-11fix(ngValue): made ngValue to write value attribute to elementMikk Kirstein
2013-07-11fix(scope): watches can be safely unregistered inside watch handlersPaulo Scardine
Closes #2915
2013-07-11style(sanitize): fix typo in variable namesBen Holley
2013-07-11refactor(Angular.js): remove code duplicationEric Subach
Closes #2890
2013-07-11fix($injector): improve $injector:nomod error messageIgor Minar
Closes #2695
2013-07-11docs(ngList): fix example and add e2e testIgor Minar
2013-07-10style(input): remove wsIgor Minar
2013-07-10docs(ngMock): correct verifyNoOutstandingExpectation exampleMark Striemer
2013-07-09docs(angular.identity): fix missing 'angular' in identity functionMarco Vito Moscaritolo
2013-07-08feat($http): accept function as headers valuebolasblack
So we can request with dynamic header value. module.factory('Res', [ '$resource' '$routeParams' 'globalConfig' function($resource, $routeParams, globalConfig) { resource('/url/:id', {id: "@id"}, { patch: { method: 'patch', headers: { 'Authorization': function() { return "token " + globalConfig.token; } } } }); }]);
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-08docs(numberFilter): fix explanation of default fraction sizePete Bacon Darwin
The default fraction size for the number filter is actually computed from the `NUMBER_FORMATS.PATTERNS.maxFrac` value in the current locale. Closes #3157
2013-07-08fix(angular.equals): do not match keys defined in the prototype chainDaniel Luz
Merely testing for object[key] will give incorrect results on keys defined in Object.prototype. Note: IE8 is generally broken in this regard since `for...in` never returns certain property keys even if they are defined directly on the object. See #2141 - partially merges this PR
2013-07-04docs(input): ng-model doesn't work well with isolated scope directivebasarat
Closes #3123
2013-07-03fix($compile): empty normalized href should pass sanitation checkAnders Hessellund Jensen
Sometimes IE returns an empty string for its normalized href on a tags. This should pass the sanitation check in $compile. Closes #2219, #2593
2013-07-03fix(i18n): Do not transform arrays into objectsLucas Galfasó
Do not trasnform arrays into objects when generating the locale objects Add unit test for this check
2013-07-03fix($sniffer): detect transition/animation on older Android browsersJulien Bouquillon
The stock Android browser doesn't support the current for-in body/style detection for animations and transitions but we can manually fix this. This is useful for PhoneGap web-views or traditional web-apps using the stock browser.
2013-07-03refactor(core): use native String.prototype.trim if availableSebastian Müller
2013-07-03fix($parse): disallow access to Function constructorChirayu Krishnappa
Enhances sandboxing of Angular Expressions to prevent attacks via: {}.toString.constructor(alert("evil JS code"))
2013-07-02fix(jqLite): prepend array in correct orderJoao Sa
Match jQuery behavior when prepending array into empty element
2013-07-02fix(ngCloak): hide element even when CSS 'display' is setVineet Kumar
Previously an element like <div class="foo ng-cloak">...</div> would still be annoyingly visible if it matched a CSS rule like .foo { display: inline-block; }, overriding ng-cloak's display: none.
2013-07-02fix($compile): prevent infinite loop w/ replace+transclude directivesIgor Minar
Previously if a template contained a directive that had a template (sync or async) and the directive template was to replace the original element and the directive template contained another directive on the root element of this template and this new directive was an element transclude directive then an infinite recursion would follow because the compiler kept on re-adding and reapplying the original directive to the replaced node. This change fixes that. Closes #2155
2013-07-02revert: fix(compiler): corrects component transclusion on ...Igor Minar
This reverts commit 15e1a29cd08993b599f390e83a249ec17f753972. The original commit was fixing two issues - one of them was preventing attributes that triggered directives that replaced the compiled node to be merged into the new node. This change was a breaking change (as seen in the diff of the tests in this commit) and that's why it's being removed. A proper fix will follow.
2013-07-02fix($injector): refactor module loading code and use minErrIgor Minar
2013-07-01fix(jqLite): rename jqLiteError to jqLiteMinErrIgor Minar
2013-07-01fix(Angular.js): handle duplicate params in parseKeyValue/toKeyValuejoshkurz
parseKeyValue and toKeyValue can now handle duplicate values in the query. ``` ?x=1&x=2 <-> {x:[1,2]} ``` The algorithm looks like: 1)parseKeyValue looks for presence of obj[key] 2)detects and replaces obj[key] with [obj[key],val] 3)then pushes more duplicates if necessary 4)toKeyValue decodes array correctly 5)(not changed)$location.search({param: 'key'}) still replaces if necessary 6)(not changed)$location.search({param: ['key1', 'key2']}) sets the url with duplicates BREAKING CHANGE: Before this change: - `parseKeyValue` only took the last key overwriting all the previous keys; - `toKeyValue` joined the keys together in a comma delimited string. This was deemed buggy behavior. If your server relied on this behavior then either the server should be fixed or a simple serialization of the array should be done on the client before passing it to $location.
2013-07-01docs($cacheFactory): show that you can access existing cachesItamar Rogel