aboutsummaryrefslogtreecommitdiffstats
path: root/src/services.js
AgeCommit message (Collapse)Author
2011-02-04$route.onChange should return the registered fnIgor Minar
2011-02-03added more cookbook: work in progressMisko Hevery
2011-02-01changed the documentation @example to use <doc:example>Misko Hevery
2011-02-01add support for $route.reload()Igor Minar
Closes 254
2011-02-01add $route.parent for setting parentScopeIgor Minar
2011-02-01add redirection support to $routeIgor Minar
Closes #217
2011-02-01fix $location to handle updates to empty hash wellIgor Minar
2011-02-01fix docs for $window serviceIgor Minar
2011-02-01fixing $exceptionHandler docsIgor Minar
2011-02-01add support for 404 handling via $route.otherwiseIgor Minar
Closes #217
2011-02-01fixing $route docsIgor Minar
2011-01-26split mocks and create $log and $exceptionHandler mocksIgor Minar
- split mocks between angular-mocks.js and mocks.js - src/angular-mocks.js now contains only mocks that we want to ship - test/mocks.js contains mocks that we use internally for testing angular - created angular.mock namespace - created public $exceptionHandler mock rethrows errors - created public $log mock stores all logs messages in an array that can be accessed to make assertions - internally we now have factory to create $exceptionHandler that we can assert on - internally we also keep track of all messages logged and fail tests if messages were not expected and cleaned up (checked via global beforeEach and afterEach) - updated RakeFile and docs reader.js to point to the new angular-mocks.js location - made real $exceptionHandler and $log factories accessible from tests and simplified their specs - fixed typos in several spec descriptions - added log assertions throughout the test suite
2011-01-24fixed example rendering, add tests for it.Misko Hevery
2011-01-24Revert "$route should create child scope via $new"Igor Minar
This reverts commit a5eb3ed107034cce5b7de3ec3f8a43ff3a379fa1. See 9ca2facb for reasoning.
2011-01-24$cookies service should not call $eval during $evalIgor Minar
- added comment - removed $eval call - changed the code to not require $eval - updated specs
2011-01-19add ng:view widgetIgor Minar
2011-01-19$route should create child scope via $newIgor Minar
2011-01-19angular internals should not call methods via angular namespaceIgor Minar
2011-01-13significant rewrite of the $location serviceIgor Minar
- don't update browser before and after eval instead - sync location properties before eval - sync location properties and update browser after eval - added tests - symplified the code - removed $location.toString() because it was not idempotent and useless This resolves the issue with issuing two $route.onHashChange calls when the $location was updated with a hashPath that needs to be encoded
2011-01-10fixing missing dependencyIgor Minar
2011-01-10Rename angular.foreach to angular.forEach to make the api consistent.Igor Minar
camelcase is used for other angular functions and forEach is also used by EcmaScript standard. - rename the internal as well as the external function name - tweak the implementation of the function so that it doesn't clober it self when we extend the angular object with an object that has a forEach property equal to this forEach function Closes #85
2011-01-10fix for IE free function weirdnessMisko Hevery
2011-01-07change to keydown from keyup; add delayed $updateViewMisko Hevery
- There was a perceived lag when typing do to the fact that we were listening on the keyup event instead of keydown. The issue with keydown is that we can not read the value of the input field. To solve this we schedule a defer call and perform the model update then. - To prevent calling $eval on root scope too many times as well as to prevent drowning the browser with too many updates we now call the $eval only after 25ms and any additional requests get ignored. The new update service is called $updateView
2011-01-07$location service should utilize onhashchange events instead of pollingIgor Minar
2011-01-04renaming service property $creation to $eagerIgor Minar
see changelog diff for more info
2011-01-04removing support for 'eager-published' servicesIgor Minar
2011-01-04Remove many eager-publish services, lazy pollingMisko Hevery
- Browser now starts the poller on first call to addPollFn() - Many services ($location, $cookies, $router) are no longer eager-publish. The result is that unless someone needs the $cookies, they will not cause the Browser to start polling for them.
2010-12-22fromJson delegation to native JSON parser if availableIgor Minar
- native parser delegation - $xhr change to use native parser
2010-12-10$defer service should always call $eval after callback finishedIgor Minar
Closes #189
2010-12-07improving $resource docsIgor Minar
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-25more docs for angular.service.Igor Minar
2010-11-25Doc service: added example into service overviewVojta Jina
2010-11-18don't escape $ in hashpath eitherIgor Minar
2010-11-18don't escape ! and : in hashPathIgor Minar
This is a temporary fix for Issue #158
2010-11-18fix all closure compilation warnings due to invalid function typesIgor Minar
2010-11-18add @workInProgress tag and mark all @ngdocs as work in progressIgor Minar
2010-11-18make @param type and description non-optionalIgor Minar
2010-11-18make @returns type non-optionalIgor Minar
2010-11-16Changed error handling so that better stack traces are displayed in the ↵Misko Hevery
ng-errors
2010-11-15Added basic Services, which support @memberOf and @methodOfVojta Jina
2010-10-31Small refactor in $location serviceVojta Jina
Added new inner method updateLastLocation()
2010-10-31Fixing issue #98 (infinite loop when location hash set empty)Vojta Jina
Added tests and fixed the issue. Closes #98
2010-10-23$cookieStore should not be a global serviceIgor Minar
you must use $inject to $inject it as any other non-global service
2010-10-19Added tests for URL_MATCH and fixed issue with empty pathVojta Jina
This commit was produced by a combination of 4 commits: - Added URL_MATCH test for basic url - Moved two tests from $location to URL_MATCH, as they should be here - Added test for host without "/" ending and fix the regexp to pass the test - Added another test for matching empty abs path ("/") and fix the regexp
2010-10-18small fixes to the $location servicesIgor Minar
* fixing the jsdoc format * rewriting updateHash() method to be easier to read and so that it minifies better
2010-10-18Removed $location.cancel() method (and related test)Vojta Jina
2010-10-18Update $location API Close #62Vojta Jina
update(objOrString) updateHash(objOrString [, objOrString]) toString() cancel() Examples: $location.update('http://www.angularjs.org/path#path?a=b'); $location.update({port: 443, protocol: 'https'}); $location.updateHash('hashPath'); $location.updateHash({a: 'b'}); $location.updateHash('hashPath', {a: 'b'}); This commit was produced by squash of more commits, here are the old messages: - Change tests to use update() instead of parse(). - First implementation of update() method - Test for update() with object parameter - Add new tests for location, refactor location code - Add tests for updateHash() - Implement updateHash() - Take one or two arguments, could be string - update hashPath, or hash object - update hashSearch... - Fixed other service tests, to use new $location.update() Added $location.cancel() method (with test) Added $location.parse() for back compatability Remove parse() method
2010-10-18Update $location API Close #62Vojta Jina
update(objOrString) updateHash(objOrString [, objOrString]) toString() cancel() Examples: $location.update('http://www.angularjs.org/path#path?a=b'); $location.update({port: 443, protocol: 'https'}); $location.updateHash('hashPath'); $location.updateHash({a: 'b'}); $location.updateHash('hashPath', {a: 'b'}); This commit was produced by squash of more commits, here are the old messages: - Change tests to use update() instead of parse(). - First implementation of update() method - Test for update() with object parameter - Add new tests for location, refactor location code - Add tests for updateHash() - Implement updateHash() - Take one or two arguments, could be string - update hashPath, or hash object - update hashSearch... - Fixed other service tests, to use new $location.update() Added $location.cancel() method (with test) Added $location.parse() for back compatability Remove parse() method
2010-10-14publish $route since we bind it with $route.current in ng:includeMisko Hevery