aboutsummaryrefslogtreecommitdiffstats
path: root/src/service/location.js
AgeCommit message (Collapse)Author
2011-11-30feat($location): name the watch function to ease debuggingIgor Minar
2011-11-30style(): get rid off some jsl warningsVojta Jina
2011-11-21feat(service.$autoScroll): scroll to hash fragmentVojta Jina
- whenever hash part of the url changes - after ng:view / ng:include load
2011-11-14style(docs): make jslint happy - fix some warningsVojta Jina
2011-11-14fix(doc) cleanup all api doc link warningsMisko Hevery
2011-11-14fix($location): links without path segment should not change the pathVojta Jina
Closes #648
2011-11-14doc(service): update docs for the moved servicesMisko Hevery
2011-11-14refactor($location): merged $locationConfig service into $locationProviderMisko Hevery
2011-11-14refactor(services): migrate angular.service -> moduleMisko Hevery
2011-11-14refactor(injector): turn scope into a serviceMisko Hevery
- turn scope into a $rootScope service. - injector is now a starting point for creating angular application. - added inject() method which wraps jasmine its/beforeEach/afterEach, and which allows configuration and injection of services. - refactor tests to use inject() where possible BREAK: - removed angular.scope() method
2011-10-22fix($location): rewrite links with nested elementsVojta Jina
For example: <a href="some/link">inner <span>text</span></a> If you click on "text", then the span element is event.target, so we need to traverse the DOM.
2011-10-13docs($location): Html5 -> HTML5Igor Minar
2011-10-13docs($location): fix $config -> $locationConfig in docsIgor Minar
2011-10-13fix($location): do not rewrite link when meta key pressedVojta Jina
2011-09-26fix(scenario): workaround for FF6 dispatchEvent issue #684208Igor Minar
2011-09-08fix($location): Use encodeUriQuery instead of escapeKai Groner
Closes #492
2011-09-08feat($location): $location service with html5 history api supportVojta Jina
See documentation of $location for more info Breaks $location has no properties, only get/set methods Closes #168 Closes #146 Closes #281 Closes #234
2011-09-08feat($browser): jQuery style url method, onUrlChange eventVojta Jina
This is just basic implementation of $browser.url, $browser.onUrlChange methods: $browser.url() - returns current location.href $browser.url('/new') - set url to /new If supported, history.pushState is used, location.href property otherwise. $browser.url('/new', true) - replace current url with /new If supported, history.replaceState is used, location.replace otherwise. $browser.onUrlChange is only fired when url is changed from the browser: - user types into address bar - user clicks on back/forward button - user clicks on link It's not fired when url is changed using $browser.url() Breaks Removed $browser.setUrl(), $browser.getUrl(), use $browser.url() Breaks Removed $browser.onHashChange(), use $browser.onUrlChange()
2011-08-12refactor(scope): remove $flush/$observe ng:eval/ng:eval-orderMisko Hevery
2011-08-02feat(scope): new and improved scope implementationMisko Hevery
- Speed improvements (about 4x on flush phase) - Memory improvements (uses no function closures) - Break $eval into $apply, $dispatch, $flush - Introduced $watch and $observe Breaks angular.equals() use === instead of == Breaks angular.scope() does not take parent as first argument Breaks scope.$watch() takes scope as first argument Breaks scope.$set(), scope.$get are removed Breaks scope.$config is removed Breaks $route.onChange callback has not "this" bounded
2011-07-18feat(strict mode): adding strict mode flag to all js filesIgor Minar
the flag must be in all src and test files so that we get the benefit of running in the strict mode even in jstd the following script was used to modify all files: for file in `find src test -name "*.js"`; do echo -e "'use strict';\n" > temp.txt cat $file >> temp.txt mv temp.txt $file done
2011-06-08Should have replaced all instances of element('input[name=something]').val() ↵Di Peng
with input('name').val() Closes #376
2011-06-07Fix couple of failing e2e testsVojta Jina
The reason was recent change in docs url
2011-04-08fix $location service docs and examplesIgor Minar
2011-03-26remove _null and _undefinedIgor Minar
they have no significant effect on minified and gziped size. in fact they make things worse. file | before | after removal ---------------------------------------- concat | 325415 | 325297 min | 62070 | 62161 min + gzip | 25187 | 25176 The bottom line is that we are getting 0.05% decrease in size after gzip without all of the hassle of using underscores everywhere.
2011-02-15split up services into individual filesIgor Minar
- split up services into files under src/service - split up specs into files under test/service - rewrite all specs so that they don't depend on one global forEach - get rid of obsolete code and tests in ng:switch - rename mock $log spec from "$log" to "$log mock"