aboutsummaryrefslogtreecommitdiffstats
path: root/src/service/scope.js
AgeCommit message (Collapse)Author
2012-03-28chore(module): move files around in preparation for more modulesMisko Hevery
2012-03-18feat(scope.$eval): Allow passing locals to the expressionVojta Jina
2012-03-16docs(scope): add $destroy event docsIgor Minar
2012-03-16feat(scope): broadcast $destroy event on scope destructionIgor Minar
perf testing shows that in chrome this change adds 5-15% overhead when destroying 10k nested scopes where each scope has a $destroy listener
2012-03-13fix(scope): remove scope $destroy eventIgor Minar
2012-03-09chore(*): refactor all ng: to ng-Igor Minar
2012-03-08docs($rootScope): rename ttl to digestTtl + docsIgor Minar
2012-02-28refactor($route): remove .parent(); ng:view scope creationMisko Hevery
2012-02-28docs(scope): correct formattingMisko Hevery
2012-02-23feta(scope): watch object refference or equalityMisko Hevery
Breaks: Must set $watch equality to true for the old behavior
2012-02-22docs(scope): update $emit/$broadcast docsVojta Jina
2012-02-21feat($compile) add locals, isolate scope, transclusionMisko Hevery
2012-02-21feat(scope): scope.$emit/$broadcast return the event object, add cancelled ↵Vojta Jina
property
2012-01-25docs(compiler): update the compiler docsMisko Hevery
2012-01-23refactor(scope.$watch): rearrange arguments passed into watcher (newValue, ↵Vojta Jina
oldValue, scope) As scopes are injected into controllers now, you have the reference anyway, so having scope as first argument makes no sense… Breaks $watcher gets arguments in different order (newValue, oldValue, scope)
2012-01-23refactor(scope): separate controller from scopeVojta Jina
Controller is standalone object, created using "new" operator, not messed up with scope anymore. Instead, related scope is injected as $scope. See design proposal: https://docs.google.com/document/pub?id=1SsgVj17ec6tnZEX3ugsvg0rVVR11wTso5Md-RdEmC0k Closes #321 Closes #425 Breaks controller methods are not exported to scope automatically Breaks Scope#$new() does not take controller as argument anymore
2012-01-17docs(*): various doc fixesIgor Minar
2012-01-12refactor(module): strict separation between module-config / app-runtimeMisko Hevery
2012-01-06feat(scope): throw exception when recursive $applyIgor Minar
2012-01-03docs(scope): fix typo $digest -> $watchMark Hansen
2011-11-30scope($digest): add new&old val to the infinite $digest logIgor Minar
2011-11-30feat(deferreds/promises): Q-like deferred/promise implementation with a ton ↵Igor Minar
of specs
2011-11-21fix(scope): $watch (and angular.equals) should support NaN valuesCodier
- since NaN !== NaN in javascript digest can get into an infinite loop when model value is set to NaN - angular.equals(NaN, NaN) should return true since that's what we expect when comparing primitives or objects containing NaN values Previously NaN because of its special === properties was used as the initial value for watches, but that results in issues when NaN is used as model value. In order to allow for model to be anything incuding undefined and NaN we need to mark the initial value differently in a way that would avoid these issues, allow us to run digest without major perf penalties and allow for clients to determine if the listener is being called because the watcher is being initialized or because the model changed. This implementation covers all of these scenarios. BREAKING CHANGE: previously to detect if the listener was called because the watcher was being initialized, it was suggested that clients check if old value is NaN. With this change, the check should be if the newVal equals the oldVal. Closes #657
2011-11-14style(docs): make jslint happy - fix some warningsVojta Jina
2011-11-14fix(doc) cleanup all api doc link warningsMisko Hevery
2011-11-14doc($rootScope): scope documentation changesMisko Hevery
2011-11-14chore(scope): remove $serviceMisko Hevery
2011-11-14refactor(api): remove type augmentationMisko Hevery
BREAK: - remove angular.[Object/Array/String/Function] - in templates [].$filter(predicate) and friends need to change to [] | filter:predicate
2011-11-14refactor(parser): turn parser into a service (keep compatibility hack)Misko Hevery
2011-11-14refactor($service): removed almost all references to scope.$serviceMisko Hevery
- still need to remove from factory
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-11-14move(scope): appease the History GodMisko Hevery
- renamed: src/Scope.js -> src/service/scope.js - renamed: test/ScopeSpec.js -> test/service/scopeSpec.js