aboutsummaryrefslogtreecommitdiffstats
path: root/src/AngularPublic.js
AgeCommit message (Collapse)Author
2010-12-06add $browser.defer and $defer service and fix async xhr cache issueIgor Minar
- Closes #152 ($resource().query() sometimes calls callback before returning, and it shouldn't) - add $browser.defer method - add $defer service - integrate $browser.defer with outstandingRequests counter in $browser - fix all old tests that relied on buggy behavior
2010-11-18add @workInProgress tag and mark all @ngdocs as work in progressIgor Minar
2010-11-15Added basic Services, which support @memberOf and @methodOfVojta Jina
2010-10-12Introduced injector and $new to scope, and injection into link methods and ↵Misko Hevery
controllers - added angular.injector(scope, services, instanceCache) which returns inject - inject method can return, instance, or call function which have $inject property - initialize services with $creation=[eager|eager-publish] this means that only some of the services are now globally accessible - upgraded $become on scope to use injector hence respect the $inject property for injection - $become should not be run multiple times and will most likely be removed in future version - added $new on scope to create a child scope - $inject is respected on constructor function - simplified scopes so that they no longer have separate __proto__ for parent, api, behavior and instance this should speed up execution since scope will now create one __proto__ chain per scope (not three). BACKWARD COMPATIBILITY WARNING: - services now need to have $inject instead of inject property for proper injection this breaks backward compatibility - not all services are now published into root scope (only: $location, $cookie, $window) - if you have widget/directive which uses services on scope (such as this.$xhr), you will now have to inject that service in (as it is not published on the root scope anymore)
2010-09-23$cookies service refactoringIgor Minar
- remove obsolete code in tests - add warning logs when maximum cookie limits (as specified via RFC 2965) were reached - non-string values will now get dropped - after each update $cookies hash will reflect the actual state of browser cookies this means that if browser drops some cookies due to cookie overflow, $cookies will reflect that - $sessionStore got renamed to $cookieStore to avoid name conflicts with html5's sessionStore
2010-09-22Refactored the Browser:Misko Hevery
- change from using prototype to inner functions to help with better compression - removed watchers (url/cookie) and introduced a poller concept - moved the checking of URL and cookie into services which register with poolers Benefits: - Smaller minified file - can call $browser.poll() from tests to simulate polling - single place where setTimeout needs to be tested - More testable $browser
2010-09-14Adding cookie serviceMisko Hevery
- Browser.cookies() - MockBrowser - $cookie service - $sessionStore
2010-07-22added jsonp to resourcesMisko Hevery
2010-07-20fixed xhtml compatibility, fix console in chromeMisko Hevery
2010-07-19added equals method to angular.equals and $equalsMisko Hevery
2010-05-07xhr bulk fixesMisko Hevery
2010-04-15added $route serviceMisko Hevery
2010-04-05added hover serviceMisko Hevery
2010-04-05added ng:switch widgetMisko Hevery
2010-04-04had to rename the flie so that it is the last file loaded.Misko Hevery
2010-04-03browser is now injectable into the systemMisko Hevery