aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2012-04-20feat($resource): support HTTP PATCH methodsimpulton
Properly serialize data into request body instead of url. Closes #887
2012-04-20chore(license): update to googleMisko Hevery
2012-04-20fix(compiler): reading comment throws error in ieMisko Hevery
Unders some circumstances reading the comment's text throws error.
2012-04-20fix(script): Incorrectly reading script text on ieMisko Hevery
IE deals with script tags in special way and .text() does not work. Reading the .text property directly fixes the issue.
2012-04-20fix(document): accidental clobbering of document.getAttributeMisko Hevery
Closes #877
2012-04-20docs(ngBind): "angular.module.ng.$sanitize" -> ↵johnlindquist
"angular.module.ngSanitize.$sanitize"
2012-04-20docs($compile) "updateh"->"updated"johnlindquist
2012-04-20docs(ngBind): "makes make" -> "makes"johnlindquist
2012-04-15docs($resource): fix the exampleVojta Jina
2012-04-12fix($location): properly rewrite urls in html5 mode with base url setIgor Minar
previously we were doing all kinds of checks to see if we should rewrite the url or not and we were missing many scenarios. not any more. with this change, we rewrite the url unless: - the href is not set - link has target attribute - the absolute url of the link doesn't match the absolute prefix for all urls in our app This also means that ng-ext-link attribute which we previously used to distinguish external links from app links is not necessary any more. apps can just set target=_self to prevent rewriting. BREAKING CHANGE: ng-ext-link directive was removed because it's unnecessary apps that relied on ng-ext-link should simply replace it with target=_self
2012-04-12fix(e2eRunner): $browser.location should delegate to apps $locationIgor Minar
previously it would create a new instance which wasn't configured as the one in the app, which resulted in incorrect values being returned in html5 mode with base url set
2012-04-11test(ngView): fix failing e2e testsIgor Minar
2012-04-11docs($http): fix return typesIgor Minar
2012-04-11feat($http): expose the defaults config as $http.defaultsIgor Minar
Often it is impossible to set the http defaults during the config phase, because the config info is not available at this time. A good example is authentication - often the app needs to bootstrap, allow user to enter credentials and only then it gains access to session token which then should be sent to the server with every request. Without having the ability to set the defaults at runtime, the developer either has to resort to hacks, or has to set the session token header with every request made by the app.
2012-04-11fix($location): don't rewrite links to different base pathsThibault Leruitte
links to different base paths should not be left untouched
2012-04-11fix(input.radio): support 2-way binding in a repeaterVojta Jina
Closes #869
2012-04-11chore(ngSanitize): extract $sanitize, ngBindHtml, linkyFilter into a moduleVojta Jina
Create build for other modules as well (ngResource, ngCookies): - wrap into a function - add license - add version Breaks `$sanitize` service, `ngBindHtml` directive and `linky` filter were moved to the `ngSanitize` module. Apps that depend on any of these will need to load `angular-sanitize.js` and include `ngSanitize` in their dependency list: `var myApp = angular.module('myApp', ['ngSanitize']);`
2012-04-10chore(*): remove dead code and fix code style issuesIgor Minar
2012-04-10docs(angular.bootstrap): fix typos and errorsIgor Minar
2012-04-09chore($browser): remove the addJs methodIgor Minar
this was never meant to be a public api used by apps. I refactored the code to hide the functionality. BREAKING CHANGE: $browser.addJs method was removed apps that depended on this functionality should either use many of the existing script loaders or create a simple helper method specific to the app.
2012-04-09chore($browser): remove the addCss methodIgor Minar
this api was never supposed to be public. nobody should be relying on it. I'm removing it since angular doesn't need it. BREAKING CHANGE: $browser.addCss was removed apps the depend on this functionality should write a simple utility function specific to the app (see this diff for hints).
2012-04-09fix(ngBindHtml): clear contents when model is falsyIgor Minar
Closes #864
2012-04-09fix(docs): change all directive references to use the normalized namesIgor Minar
2012-04-05fix(docs): move $cookies and $cookieStore docs to moduleIgor Minar
2012-04-05fix(Rakefile): move 'use strict'; flag into the angular closureIgor Minar
closure compiler is stubborn and puts the flag to the top of the file, so we have to post-process the minified file to move the flag into the angular closure.
2012-04-04feat($http): add withCredentials config optionVojta Jina
2012-04-04feat($route): allow chaining of whens and otherwiseIgor Minar
Previously one had to write: $routeProvider.when('/foo', {...}); $routeProvider.when('/bar', {...}); $routeProvider.otherwise({...}); After this change it's just: $routeProvider. when('/foo', {...}). when('/bar', {...}). otherwise({...}); Breaks #when which used to return the route definition object but now returns self. Returning the route definition object is not very useful so its likely that nobody ever used it.
2012-04-04fix(docs): remove ngModelInstant from all examplesIgor Minar
just fixing leftover code after the removal of ngModelInstant
2012-04-04chore(directive): correct file names for booleanAttrsVojta Jina
2012-04-04fix(booleanAttrs): convert to booleanVojta Jina
jQuery's attr() does not handle 0 as false, when it comes to boolean attrs.
2012-04-03fix(form): preperly clean up when invalid widget is removedMisko Hevery
Removing invalid widget sometimes resulted in improper cleanup of the form state.
2012-04-03fix(ng-href): copy even if no bindingMisko Hevery
Closes# 850 fixed an issue where ng-href would not copy its content into href if it did not contain binding.
2012-04-03fix($compile): relax the restriction that directives can not add siblingsMisko Hevery
Relax the restriction that directives can not add siblings
2012-04-03refactor(ngView): remove extra $watch, refactor one ugly testVojta Jina
2012-04-03feat(ngInclude): allow ngInclude on css classVojta Jina
And make it terminal so that it does not compile its content, which would cause leaks.
2012-04-03fix(ngInclude): fire $includeContentLoaded on proper (child) scopeVojta Jina
2012-04-03refactor(ngInclude): remove scope attributeVojta Jina
The purpose of allowing the scope to be specified was to enable the $route service to work together with ngInclude. However the functionality of creating scopes was in the recent past moved from the $route service to the ngView directive, so currently there is no valid use case for specifying the scope for ngInclude. In fact, allowing the scope to be defined can under certain circumstances lead to memory leaks. Breaks ngInclude does not have scope attribute anymore.
2012-04-03feat(ngModel): update model on each key stroke (revert ngModelInstant)Vojta Jina
It turns out that listening only on "blur" event is not sufficient in many scenarios, especially when you use form validation you always had to use ngModelnstant e.g. if you want to disable a button based on valid/invalid form. The feedback we got from our apps as well as external apps is that the ngModelInstant should be the default. In the future we might provide alternative ways of suppressing updates on each key stroke, but it's not going to be the default behavior. Apps already using the ngModelInstant can safely remove it from their templates. Input fields without ngModelInstant directive will start propagating the input changes into the model on each key stroke.
2012-04-03feat($sniffer): add hasEvent method for sniffing eventsVojta Jina
Skip changelog
2012-04-02fix($q): $q.reject should forward callbacks if missingIgor Minar
$q.reject('some reason').then() should not blow up, but correctly forward the callbacks instead. Closes #845
2012-04-02fix($location): search setter should not double-encode the valueMykhailo Kotsur
By mistake both the setter and helper function that composes the whole url were encoding the search values. Closes #751
2012-03-29fix(FormController): ask for dependency to fool the BC moduleIgor Minar
2012-03-29fix(ngValue): bind properly inside ng-repeatVojta Jina
2012-03-29fix($injector): properly infer dependencies from fn with no argsIgor Minar
Previously if there was a white-space in fn: fn( ) {} we failed to infer no args. This was originally reported by recht, but I decided to use a different fix. Closes #829
2012-03-29refactor($compile): move methods of attr object into prototypeVojta Jina
We have many instances of this object and we clone them as well (e.g. ng-repeat). This should save some memory and performance as well. Double prefixed private properties of attr object: attr.$element -> attr.$$element attr.$observers -> attr.$$observers Update shallowCopy to not copy $$ properties and allow passing optional destination object.
2012-03-29fix($compile): properly clone attr.$observers in ng-repeatVojta Jina
The `attr` object was only shallow copied which caused all observers to be shared. Fixing similar issue in ng-* boolean attributes as well as ng-src and ng-href.
2012-03-28refactor(fromJson/toJson): move the contents of these files into Angular.jsIgor Minar
these files are now mostly empty so it doesn't make sense to keep them separated from other helper functions
2012-03-28refactor(toJson): use native JSON.stringifyIgor Minar
Instead of using our custom serializer we now use the native one and use the replacer function to customize the serialization to preserve most of the previous behavior (ignore $ and $$ properties as well as window, document and scope instances).
2012-03-28refactor(fromJson): always use native JSON.parseIgor Minar
This breaks IE7 for which you can use polyfill: https://github.com/douglascrockford/JSON-js <!--[if lt IE 8]> <script src="json2.min.js"></script> <![endif]--> or http://bestiejs.github.com/json3/ <!--[if lt IE 8]> <script src="json3.min.js"></script> <![endif]-->
2012-03-28feat($http): make the transform defaults to an arrayIgor Minar
$httpProvider.defaults.transformRequest and $httpProvider.defaults.transformResponse are now arrays containing single function. This makes it easy to add an extra transform fn. adding an extra fn before had to be done in this cluncky way: $httpProvider.defaults.transformResponse = [$httpProvider.defaults.transformResponse, myTransformFn]; after this change, it's simply: $httpProvider.defaults.transformResponse.push(myTransformFn);