aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2012-06-02feat($rootElement): added application root elementMisko Hevery
Publish the application root element as $rootElement so that it can be injected to other services.
2012-06-01feat($route): rename template -> tempalteUrl and add support for inline ↵Misko Hevery
templates BREAKING CHANGE: template in $route definition is now templateUrl To migrate just rename `template` to `templateUrl`.
2012-06-01chore($route): rename eventsMisko Hevery
BREAKING CHANGE rename $beforeRouteChange to $routeChangeStart rename $afterRouteChange to $routeChangeSuccess
2012-06-01feat($route): resolve local route promisesMisko Hevery
Resolve all promises on route before we fire $afterRouteChange which then renders the ngView.
2012-06-01feat($injector): provide API for retrieving function annotationsMisko Hevery
2012-05-24fix(jqLite): don't eat event exceptionsMisko Hevery
JQuery does not catch exceptions either, and just lets them pass. This allows the exception to be shown in console.
2012-05-24fix(docs): accept return in addition to returnsMisko Hevery
documentation used @return but parser expected @returns, which made the generated documentation incomplete.
2012-05-23fix($rootScope): TTL exception does not clear $$phaseMisko Hevery
When $digest() throws infinite digest exception it does not properly clear the $phase leaving the scope in an inconsistent state. Closes #979
2012-05-23feat($timeout): add $timeout service that supersedes $deferIgor Minar
$timeout has a better name ($defer got often confused with something related to $q) and is actually promise based with cancelation support. With this commit the $defer service is deprecated and will be removed before 1.0. Closes #704, #532
2012-05-22docs($filter): minor correctionsDaniel Gomes
2012-05-22fix(ngRepeat): expose $first, $middle and $last instead of $positionMax
$position marker doesn't work well in cases when we have just one item in the list because then the item is both the first and last. To solve this properly we need to expose individual $first and $middle and $last flags. BREAKING CHANGE: $position is not exposed in repeater scopes any more To update, search for $position and replace it with one of $first, $middle or $last. Closes #912
2012-05-17feat(scope): add event.preventDefault() and event.defaultPreventedVojta Jina
2012-05-17refactor(scope.$emit): rename event.cancel() to event.stopPropagation()Vojta Jina
Breaks event.cancel() is event.stopPropagation()
2012-05-17fix(jqLite): have same expando format as jQueryMisko Hevery
2012-05-14fix(jqLite): .data()/.bind() memory leakMisko Hevery
Since angular attaches scope/injector/controller into DOM it should clean up after itself. No need to complain about memory leaks, since they can only happened on detached DOM. Detached DOM would only be in tests, since in production the DOM would be attached to render tree and removal would automatically clear memory.
2012-05-14fix(angular-mocks): memory leak in jasmine's DI utilsMisko Hevery
When using inject/module helper methods in tests, these methods would leave the injector laying around after the test. Since injector is the application it can grow very large.
2012-05-14fix($sniffer): report history false on Android < 4Vojta Jina
Android has history.pushState, but it does not update the location correctly: http://code.google.com/p/android/issues/detail?id=17471 Closes #904
2012-05-14fix($location): support urls with any protocolIgor Minar
The url used for location parsing was quite strict and did not support custom url schemes like "chrome-extension://". With this change the only requirement for scheme is that it doesn't contain ":" character.
2012-05-13fix($browser/$location): single quote in url causes infinite digest in FFIgor Minar
The real issue is in FF, see https://bugzilla.mozilla.org/show_bug.cgi?id=407172. FF overly encodes stuff which breaks our expectations and then we fail .url() != currentUrl.absUrl() comparison unexpectidly, which leads to infinite digest. The workaround is to correct for this inconsistency in $browser and decode any single quotes in urls. Closes #920
2012-05-08doc($rootScope): fix $digest exampleIgor Minar
2012-05-07bug(ie8 docs): docs now work on ie8Misko Hevery
2012-05-07bug(html5 navigation): broken in OperaMisko Hevery
http://my.opera.com/community/forums/topic.dml?id=1185462 Closes# 938
2012-05-06fix(ngSrc,ngHref): binding should set element prop as well as attrIgor Minar
IE9 ignores setAttribute('src', val) calls on img if "ng:src" attribute is present. It only fetches the image if element property is updated as well. Closes #935
2012-05-06fix(ngModel): use keydown/change events on IE9 instead of inputIgor Minar
On IE9 the input event is not fired when backspace or delete key are pressed or when cut is performed. This makes listening on the input event unreliable and therefore it's better for us to just use keydown/change events instead. Closes #879
2012-05-05fix(scenario): make browser().location() working if ng-app on other than <html>Vojta Jina
2012-05-05fix($parse): support methods on falsy primitive typesVojta Jina
e.g. zero, false, empty string - fix tests to be executed with csp true - fix cps (when more than 5 parts)
2012-05-04chore(docs): re-skin main documentationMisko Hevery
2012-05-04bug($cookie): set on app base path rather the current path.Misko Hevery
2012-05-04fix($compile): have $observe return registration functionMisko Hevery
2012-05-04feat(bootstrap): support code prettify and dropdown from bootstrapMisko Hevery
2012-05-04chore(controller): allow setting map of controllersMisko Hevery
2012-05-04chore(module): improved module prefix/suffix codeMisko Hevery
2012-05-04chore(debug): rewrite angular-bootstrap.js to use $scriptMisko Hevery
2012-05-04fix($compile): ignore ws when checking if template has single rootIgor Minar
Also add the same error checking for sync templates. Closes #910
2012-05-03style($compile): rename orig*Node to beforeTemplate*NodeIgor Minar
2012-05-03fix($compile): fix replaceWithIgor Minar
the old implementation didn't reattach jquery/jqlite data which caused things like to be lost I tried various implementations but it appears that by reattaching the data to the new node by copying the expando property is the most reliable of all.
2012-05-03feat(jqLite): support data() getter and data(obj) setterIgor Minar
... just like jquery does
2012-05-03style(jqLite): clean up the codeIgor Minar
2012-05-03style($compile): clean up the code and normalize fn namesIgor Minar
2012-05-03fix($compile): attach scope to the directive element when templateUrl and ↵Igor Minar
replace=true We forgot to reattach the scope to the replacement element. This affected only directives that had templateUrl and replace:true properties. Reported on the mailing list: https://groups.google.com/forum/?fromgroups#!topic/angular/zwjLr1msS2Y http://jsfiddle.net/lukebayes/g9Sh9/
2012-05-03chore($compile): remove obsolete <<CONTENT>> transclusionIgor Minar
This stuff was never documented and is an accidental leftover from the time when the compiler was rewritten. If any code depends on this, it should be rewritten to use ngTransclude directive intead.
2012-05-03fix($compile): prevent duplicate directive controller instantiationIgor Minar
Closes #876
2012-05-02style($compile): rename compiler.js to compile.jsIgor Minar
2012-05-02fix(select): don't interfere with selection if not databoundIgor Minar
Closes #926
2012-04-30docs(ngCsp): make the CSP docs publicly visibleIgor Minar
2012-04-30docs(ngSanitize): fix directive linksIgor Minar
2012-04-27feat($parse): CSP compatibilityIgor Minar
CSP (content security policy) forbids apps to use eval or Function(string) generated functions (among other things). For us to be compatible, we just need to implement the "getterFn" in $parse without violating any of these restrictions. We currently use Function(string) generated functions as a speed optimization. With this change, it will be possible to opt into the CSP compatible mode using the ngCsp directive. When this mode is on Angular will evaluate all expressions up to 30% slower than in non-CSP mode, but no security violations will be raised. In order to use this feature put ngCsp directive on the root element of the application. For example: <!doctype html> <html ng-app ng-csp> ... ... </html> Closes #893
2012-04-20fix(events): include ie8 in extra event property resetMisko Hevery
2012-04-20fix(bootstrap): rewritten to $scriptMisko Hevery
2012-04-20fix(mouseenter): FF no longer throws exceptionsMisko Hevery