aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2013-06-06feat(ngdocs): provide documentation for the new ngRepeat repeater syntaxMatias Niemelä
2013-06-06chore(AngularPublic): remove angular.noConflict featureMatias Niemelä
2013-06-06refactor($route): pull $route and friends into angular-route.jsIgor Minar
$route, $routeParams and ngView have been pulled from core angular.js to angular-route.js/ngRoute module. This is was done to in order keep the core focused on most commonly used functionality and allow community routers to be freely used instead of $route service. There is no need to panic, angular-route will keep on being supported by the angular team. Note: I'm intentionally not fixing tutorial links. Tutorial will need bigger changes and those should be done when we update tutorial to 1.2. BREAKING CHANGE: applications that use $route will now need to load angular-route.js file and define dependency on ngRoute module. Before: ``` ... <script src="angular.js"></script> ... var myApp = angular.module('myApp', ['someOtherModule']); ... ``` After: ``` ... <script src="angular.js"></script> <script src="angular-route.js"></script> ... var myApp = angular.module('myApp', ['ngRoute', 'someOtherModule']); ... ``` Closes #2804
2013-06-04docs(ngTransclude): fix outdated scope definition in exampleMarcin Wosinek
2013-06-04docs(Angular.js): clarify ngApp usageRobbie Ferrero
2013-06-04docs(angular-mocks): fix typo in exampleRobb Shecter
fromJSON() should be fromJson()
2013-06-04docs(sanitize): add @description sectionAlan Klement
2013-06-04docs(ngClass): clarify the use of object mapLuc Morin
2013-06-04docs(input): provide explanation of how ngModel will affect the local scopeLuc Morin
2013-05-31fix(ngController): fix indentation bug which causes example to mess upMatias Niemelä
2013-05-30fix(jqLite): Added optional name arg in removeDataJeff Cross
jQuery's API for removeData allows a second 'name' argument to just remove the property by that name from an element's data. The absence of this argument was causing some features not to work correctly when combining multiple directives, such as ng-click, ng-show, and ng-animate.
2013-05-30fix($animator): ensure $animator calculates the highest duration + delay for ↵Matias Niemelä
and transitions and animations together
2013-05-30docs(): Rectify animator.animate documentationGias Kay Lee
2013-05-30feat(ngdocs): provide support for inline variable hintingMatias Niemelä
2013-05-28feat($compile): support multi-element directiveMisko Hevery
By appending directive-start and directive-end to a directive it is now possible to have the directive act on a group of elements. It is now possible to iterate over multiple elements like so: <table> <tr ng-repeat-start="item in list">I get repeated</tr> <tr ng-repeat-end>I also get repeated</tr> </table>
2013-05-24feat(ngError): add error message compression and better error messagesIgor Minar
- add toThrowNg matcher
2013-05-23feat($swipe): Refactor swipe logic from ngSwipe to $swipe service.Braden Shepherdson
This new service is used by the ngSwipeLeft/Right directives, and by the separate ngCarousel and swipe-to-delete directives which are under development.
2013-05-23feat($resource): expose promise instead of only $thenAlexander Shtuchkin
- Instance or collection have `$promise` property which is the initial promise. - Add per-action `interceptor`, which has access to entire $http response object. BREAKING CHANGE: resource instance does not have `$then` function anymore. Before: Resource.query().$then(callback); After: Resource.query().$promise.then(callback); BREAKING CHANGE: instance methods return the promise rather than the instance itself. Before: resource.$save().chaining = true; After: resource.$save(); resourve.chaining = true; BREAKING CHANGE: On success, promise is resolved with the resource instance rather than http response object. Use interceptor to access the http response object. Before: Resource.query().$then(function(response) {...}); After: var Resource = $resource('/url', {}, { get: { method: 'get', interceptor: { response: function(response) { // expose response return response; } } } });
2013-05-23fix(jqLite): correctly monkey-patch core jQuery methodsMichał Gołębiowski
When real jQuery is present, Angular monkey patch it to fire `$destroy` event. This commit fixes two issues in the jQuery patch: - passing a selector to the $.fn.remove method (only fire `$destroy` on the matched elements) - using `$.fn.html` without parameters as a getter (do not fire `$destroy`)
2013-05-23docs(input): add missing ngChange directive for email typeDavid Bennett
All other input types already have it.
2013-05-21docs(Angular.js): add missing @returns to extend()Joakim Blomskøld
2013-05-20chore(ngdocs): move angular-bootstrap.js to be generated only inside the ↵Matias Niemelä
docs and remove from the build process
2013-05-20feat($http): add support for aborting via timeout promisesDavid Bennett
If the timeout argument is a promise, abort the request when it is resolved. Implemented by adding support to $httpBackend service and $httpBackend mock service. This api can also be used to explicitly abort requests while keeping the communication between the deffered and promise unidirectional. Closes #1159
2013-05-20docs(filters): fix minor typographical errorDaniel Tse
Fix a typographical error "it's" -> "its" in the dateFilter documentation
2013-05-20doc(filter): remove invalid characterMisha Moroshko
2013-05-18docs(ngMock::$log): improve the `$log.*.logs` descriptionsChris M
Because ngDoc generation only takes the last segment of a property name, each $log.[error|warn|log...].logs property has the same name and is confusing in the docs. This commit helps this by adding a link to the $log.* method and also an appropriate usage example.
2013-05-18doc(ngModel): $setViewValue calls all parsers, not formattersJoakim Blomskøld
2013-05-16feat($animator): provide support for custom animation eventsMatias Niemelä
2013-05-16fix(jqLite): pass a dummy event into triggerHandlerJulie
Previously, anchor elements could not be used with triggerHandler because triggerHandler passes null as the event, and any anchor element with an empty href automatically calls event.preventDefault(). Instead, pass a dummy event when using triggerHandler, similar to what full jQuery does. Modified from PR #2379.
2013-05-16feat($parse): add support for ternary operators to parserZach Snow
Add '?' token to lexer, add ternary rule to parser at (hopefully) proper precedence and associativity (based on https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Operators/Operator_Precedence). Since (exp1 && exp2 || exp3) is supported by the parser, and (exp1 ? exp2 : exp3) works the same way, it seems reasonable to add this minor form of control to templates (see #719).
2013-05-16fix($resource): null default param results in TypeErrorRyan Schumacher
Fixes issue when setting a default param as `null` error `TypeError: Cannot read property 'charAt' of null`
2013-05-16feat($http): add a default content type for PATH requestsDaniel Stockton
The default header is now application/json which while not perfect in all cases is better than the browser default application/xml. The new headers also makes for better compatibility with Rails 4
2013-05-16docs(ngCsp): add more informative detailsDean Sofer
Transferred from https://github.com/angular/angular.js/wiki/Using-AngularJS-in-a-Chrome-Extension-environment
2013-05-14feat(ngSrcset): add new ngSrcset directiveSamuel Santos
In line with ngSrc and ngHref, this new directive ensures that the `srcset` HTML5 attribute does not include a pre-interpolated string. Without it the browser will fetch from the URL with the literal text `{{hash}}` until AngularJS replaces the expression inside `{{hash}}`. Closes #2601
2013-05-14feat(scenario): adds mousedown and mouseup event triggers to scenarioAndreas Marek
Added mousedown and mouseup event triggers to scenadio dsl 'element' expression. Added mousedown and mouseup to the custom jquery trigger method to generate real events.
2013-05-14docs($timeout): minor cleanupSiddique Hameed
Added a comma separator in the statement Removed the word the from the statement Used whose instead of who's in the following statement Italicized false in the statement Used a comma separator in the statement
2013-05-14feat($resource): collapse empty suffix parameters correctlyGlenn Goodrich
Previously only repeated `/` delimiters were collapsed into a single `/`. Now, the sequence `/.` at the end of the template, i.e. only followed by a sequence of word characters, is collapsed into a single `.`. This makes it easier to support suffixes on resource URLs. For example, given a resource template of `/some/path/:id.:format`, if the `:id` is `""` but format `"json"` then the URL is now `/some/path.json`, rather than `/some/path/.json`. BREAKING CHANGE: A `/` followed by a `.`, in the last segment of the URL template is now collapsed into a single `.` delimiter. For example: `users/.json` will become `users.json`. If your server relied upon this sequence then it will no longer work. In this case you can now escape the `/.` sequence with `/\.`
2013-05-14feat(select): match options by expression other than object identityquazzie
Extend ng-options with a new clause, "track by [trackByExpression]", which can be used when working with objects. The `trackByExpression` should uniquely identify select options objects. This solves the problem of previously having to match ng-options objects by identity. You can now write: `ng-options="obj as obj.name for obj in objects track by obj.id"` The "track by" expression will be used when checking for equality of objects. Examples: <select ng-model="user.favMovieStub" ng-options="movie as movie.name for movie in movies track by movie.id"> </select> scope: { user: { name: 'Test user', favMovieStub: { id: 1, name: 'Starwars' } } movies: [{ id: 1, name: 'Starwars', rating: 5, ... }, { id: 13, ... }] } The select input will match user favMovieStub to the first movie in the movies array, and show "Star Wars" as the selected item.
2013-05-13feat(ngAnimate): cancel previous incomplete animations when new animations ↵Matias Niemelä
take place
2013-05-13feat(ngdocs): external links to github, plunkr and jsfiddle available for ↵Matias Niemelä
code examples
2013-05-13docs(animation): fix code example to work with most recent ngAnimateMatias Niemelä
ngAnimate: Rename CSS classes in example code to work with new ngAnimate naming conventions ngInclude: Include animations toggle in ngInclude example code ngAnimate: Remove ms- prefix and fix up CSS animation example code
2013-05-11fix($browser): should use first value for a cookie.Chirayu Krishnappa
With this change, $browser.cookies()["foo"] will behave like docCookies.getItem("foo") where docCookies is defined at https://developer.mozilla.org/en-US/docs/DOM/document.cookie This fixes the issue where, if there's a value for the XSRF-TOKEN cookie value with the path /, then that value is used for all applications in the domain even if they set path specific values for XSRF-TOKEN. Closes #2635
2013-05-10docs($scope): clarify documentation for $broadcastwilltj
2013-05-10fix(ngPluralize): handle the empty string as a valid overrideLucas Galfasó
Fix the check for overrides so it is able to handle the empty string Closes #2575
2013-05-09docs(Angular.js) move forEach docs to correct placeAlex Pods
2013-05-09style(*): fix up semicolon and var usageAnatoly Shikolay
2013-05-09docs($window): fix examplePete Bacon Darwin
2013-05-08fix(scenario): update to use our angular-scenario.js rather then karmaMisko Hevery
2013-05-08chore(ngAnimate): CSS classes X-setup/X-start -> X/X-activeMatias Niemelä
BREAKING CHANGE: css classes foo-setup/foo-start become foo/foo-active The CSS transition classes have changed suffixes. To migrate rename .foo-setup {...} to .foo {...} .foo-start {...} to .foo-active {...} or for type: enter, leave, move, show, hide .foo-type-setup {...} to .foo-type {...} .foo-type-start {...} to .foo-type-active {...}
2013-05-08feat(ngAnimate): Add support for CSS3 Animations with working delays and ↵Matias Niemelä
multiple durations