angular 0.14.0
angular: ^0.14.0 copied to clipboard

outdated Dart 2 incompatible

Angular for dart.

v0.14.0 symbiotic-meerkat (2014-08-22) #

Highlights #

This release is focused on supporting Polymer web components inside Angular components, using the new on-* and bind-* syntax. Take a look at example/web/paper.html for some material design examples.

Also, we have added instrumentation for [Web Tracing Framework] (, so that you can visualize codepaths in your live apps (only browser plug-in required).

At last we did plenty of bug fixing and performance improvements for an even smoother developer experience.

Bug Fixes #

  • HttpConfig: Remove the optional argument to the default ctor (a84c0b87, #1285)
  • NgRepeat: remove duplicated call to _updateContext() (15570eea)
  • benchmark: Remove obsolete DI call (4068e242)
  • directive-injector: breaking changes and fixes (600113a8, #1111)
  • dom_util: loosen typing of nodes list (f393a96d, #1359)
  • example: cleanup imports for ShadowDOM example (721eebab, #1323)
  • html_extractor: correct handling of camelCased attributes (7e7c934b, #1301)
  • http: always initialize final coalesceDuration (e5cf3784)
  • mock: Timer.isActive should be false after running callback (75d40649)
  • scope: increase default ScopeDigestTTL to 10 iterations (5ff38bd5)
  • web components: Support Polymer quirks (879772fa, #1292)
  • web_platform: include selector in viewFactoryCache key (aa5abed2)
  • transformer: Don't share resolvers between parallel transformers as this will cause a deadlock (dba6727b, #1276, #1382)

Features #

  • Context: Add ability to set the Type for the rootScope context (6a6a7feb)
  • DirectiveInjector: add a toInstanceOf parameter to bind() (f8bbd35f)
  • OrderBy:
  • ScopeAware: introduce ScopeAware abstract class (181f0144, #1360)
  • WTF: Add support for WTF (23639c13, #1354)
  • directive-injector: introduce getFromParent[byKey] methods on DirectiveInjector (3b7b0d65)
  • element binder:
  • probe: add directive getter and export ElementProbe type. (3ec5d753)
  • routing: add support for dontLeaveOnParamChanges (9f55fbfc, #1252, #1254)
  • testability: findBindings and findModels should descend into the ShadowDOM (60a1a21d)
  • template-cache add option to use external css rewriter in template_cache_generator (25d85fb3, #1052)
  • WTF: extracted scopes to separate file, add documentation (ef3fb7b2, #1361)

Performance Improvements #

  • dom: improve dom cloning speed (dec8a972)
  • nodecursor: do not grow/shrink the nodes list (1ab510df)
  • watch-group: remove expression coalescing (3de00bd4, #1328)

Breaking Changes #

Regular injectors (aka application injectors) can no longer be used to retrieve DirectiveInjectors. The compiler creates the Directive Injector as part of view creation process.

v0.13.0 tempus-fugitification (2014-07-25) #

Highlights #

This release is focused on performance and significantly speeds up rendering. We optimized our entire rendering pipeline and now component rendering is 2.8 times (those with inlined templates) to 6.3 times faster (those with template files) than the previous 0.12.0 release.

To accomplish these performance improvements, we

  • fixed a number of performance bugs
  • moved more compilation work out of the ViewFactories, which stamps out DOM nodes, and into the Compiler, which sets up the ViewFactories.
  • implemented a custom "directive injector" to optimize Dependency Injection calls from the ViewFactories
  • optimized Dependency Injection, eliminating slow APIs

Also, we have given apps more knobs to tune performance

  • The Http service now supports coalescing http requests. This means that all the HTTP responses that arrive within a particular interval can all be processed in a single digest.
  • The ElementProbe can be disabled for apps that do not use animation
  • Along with the existing ScopeStats, Angular now exposes cache statistics through the ngCaches global object. This also allows developers to clear the caches and measure memory usage
  • Along with these changes, we have also added support for ProtractorDart.

Bug Fixes #

  • DynamicParser: Correctly handle throwing exceptions from method. (82ca6bad, #971, #1064)
  • Http:
    • Auxiliary methods like get, put, post, etc. do not set type restriction on data being sent. (68c3e80a, #1051)
    • Fix NoSuchMethodError in Http when cache set to true and update documentation about cache usage. (5b483324, #1066)
  • NgModel: Read the view value in the flush phase (75c2f170)
  • WatchGroup: Handle watching elements of array that were removed. (8c271f78, #1046)
  • benchmark:
  • cache:
  • change_detector: fix NaN move detection in collections (f01e2867, #1136, #1149)
  • component factory: Only create a single ShadowDomComponentFactory (707f701c)
  • dccd:
  • di: Remove deprecated calls to DI bind(Type, inject[]).
  • directive: Support multiple directives with same selector. (01488977)
  • element binder:
    • New-style Module.bind for AttrMustache (cfa11e05)
    • Use the new-style Module.bind(toFactory) syntax (bed6bcbe)
  • examples: do not use shadow DOM (0cf209bb)
  • expression extractor: Do not use implicit DI (105b41f4)
  • introspection:
  • karma: remove saucelabs from default browser list. (989992de)
  • ng-model: Turn off failing test until Dart 1.6 is stable. (e8825165, #1234)
  • ng-view: cleanup should not destroy an already destroyed scope (5cb46a16, #1182)
  • ng_repeat: fix ng_repeat not moving views for elements that have not moved (559a685e, #1154, #1155)
  • parser: ensure only one instance of dynamic parser (f2c45758)
  • pubspec: Add missing upper bound version constraints (cee0d727)
  • registry_dynamic: Do not use HashMaps. (04624f21)
  • scope:
    • remove deprecation warning for with context (1c7c0ba3)
    • Use runAsync for microtasks in digest. (d1e745e0)
  • transcluding component: Perfer getByKey over get (6f3587d2)
  • travis: Work around Travis breakages (be76be4f)
  • various: Use the new-style Module.bind(toFactory) syntax (a30c0a57)
  • watch_group: fix for NaN !== NaN (d24ff897, #1146)
  • web platform: Do not barf on attribute selectors. (f2b83930)

Features #

  • animate: Allowed property to turn off all animations (b3f2e6ca)
  • benchmark:
    • improve layout of data by moving averages to dedicated row (3330d657)
    • calculate coefficient of variation (fc09af2c)
    • add standard deviation to report (13e87e06)
    • calculate relative margin of error and simplify report (4614cc06)
    • add confidence and stability info to averages (bd17bbe7)
    • add statistical functions to calculate confidence interval (26f7defe)
    • add ability to profile memory usage per iteration (afe55814)
    • improve sampling UI (e1c17d90)
    • change samples input type from range to text (387933d0)
    • record gc time for each test run (dfdf67b5)
    • add ability to adjust sample quantity (a98663d9)
    • add automatic gc before each test (fe1f74d0, #1133)
  • cache:
  • compiler:
    • Backport DirectiveBinder API from #1178 to allow gradual migration. (1f3cca42)
  • element binder: Use a child scope instead of (6051340b)
  • form: Add support for input[type=color] (0064ef5c, #611, #1080)
  • http:
    • support coalescing http requests (3e44a542)
    • run interceptors synchronously until first non-sync interceptor (38d3cfd6)
  • mock: Add timer queue checks in mock zone (98e61b77, #1157)
  • router: added vetoable preLeave event (ddd9e414, #1070)
  • scope:
    • Expose Scope.watchAST as a public API (ecd75ce7)
    • Deprecate's context parameter. (e8a5ce73)
    • Instrument Scope to use User tags in Dart Obervatory (c21ac7ea, #1138)
    • Use VmTurnZone.onScheduleMicrotask in Scope (81667aad, #984)
  • testability:
    • whenStable replaces notifyWhenNoOutstandingRequests (5ef596d1)
    • implement the testability for ProtractorDart (f2d1f2e9)

Performance Improvements #

  • ChangeDetector:
    • create _EvalWatchRecord#namedArgs lazily (42e53b86)
    • lazy initialize DuplicateMap (11629dee)
  • View: Improve View instantiation speed and memory consumption. (494deda5)
  • cd: fewer string concatenations (10% improvement) (a6526803)
  • compiler:
    • +6% Pre-compute ViewFactories, styles for components. (be3cdd41, #1134)
    • An option to disable the ElementProbe. (9f0c7bca, #1118, #1131)
    • Pre-compile ASTs for attribute mustaches (90df4eb2, #1088)
    • Precompute AST for TextMustache (daf8d5af)
  • element binder: Do not create tasklists when not needed (a33891ea)
  • scope: Cache the AST. (05e2c576, #1173)
  • various: Avoid putIfAbsent (57da29d7)
  • view cache: Avoid http.get (db72a4fc, #1108)
  • view factory: 14% Precompute linking information for nodes (eac36d1d, #1194, #1196)

Breaking Changes #

Previously a micro task registered in flush phase would cause a new digest cycle after the current digest cycle. The new behavior will cause an error.

Closes #984

  • Injector no longer supports visibility
  • The Directive:module instead of returning Module now takes DirectiveModule (which supports visibility)
  • Application Injector and DirectiveInjector now have separate trees. (The root if DirectiveInjector is ApplicationInjector)
  • scope: due to d1e745e0,

Microtasks scheduled in flush will process in current cycle, but they are not allowed to do model changes.

Microtasks scheduled in digest will be executed in digest, counting towards the ScopeDigestTTL.

  • testability: due to 5ef596d1,

    NOTE: This only affects you if you are calling this API directly. If you are using ProtractorDart, then you are insulated from this change.

    To update your code, rename all references to the notifyWhenNoOutstandingRequests(callback) method on the testability object to whenStable(callback).

v0.12.0 sprightly-argentinosaurus (2014-06-03) #

Highlights #

  • A 20% performance improvement from caching interpolated expressions.
  • Http service can make cross-site requests (get, post, put, etc.) which use credentials (such as cookies or authorization headers).
  • Breaking change: vetoing is no longer allowed on leave (RouteLeaveEvent). This change corrects an issue with routes unable to recover from another route vetoing a leave event.
  • Breaking change: Zone.defaultOnScheduleMicrotask is now named Zone.onScheduleMicrotask
  • Breaking change: OneWayOneTime bindings will continue to accept value assignments until their stabilized value is non-null.

Bug Fixes #

  • NgStyle: make NgStyle export expressions (8470abd3, #993)
  • ViewCache: Use an unbounded cache in the ViewCache. (36d93d87)
  • VmTurnZone:
    • Remove a unneeded call. (a0d5d82d)
    • onScheduleMicrotask behaves correctly with orphaned scheduleMicrotasks. (a8699da0)
  • angular_spec: export symbols for the route preLeave event (7c9a7585)
  • compiler:
    • Do not store injectors with TaggingElementBinders (a9dc429c)
    • OneWayOneTime bindings now wait for the model to stablize (0e129496, #1013)
  • dccd: fix DirtyCheckingRecord.toString() throws an exception (efcdca3f)
  • directives: remove an unused import (6102d8a1)
  • element binder:
    • fix memory leak with expando value holding onto node (b7f175bf)
    • Ensure mappings are evaluated before attach() is called. (fef0da0a, #1059)
  • http: use location.href instead of toString (6a48a39d)
  • ng-repeat: handle the ref changing to null and back (46b4c0e0, #1015)
  • transcluding component factory: allow removing components that have no content to transclude (706f9e9b)
  • transcluding_component_factory: fix content detach logic (3141d32e)
  • watch group: Fixed WatchGroup.toString(), added a test. (c9776b4c)

Features #

  • Http: Http service can make cross-site requests (get, post, put, etc.) which use credentials (such as cookies or authorization headers). (3ef9d8e4, #945, #1026)
  • date: Use localized patterns for shorthand format (fb1bcf47)
  • dccd: Make toString() code more robust (47ad9d9b)
  • ng-base-css: useNgBaseCss Component annotation field. (b861a9fc)
  • ng-model: Added ng-model-options (f7115aa8, #969, #974)
  • platform: Make angular invoke web_component polyfills for browsers without native web_component implementations. (0c22a3b6)
  • travis: Web platform features for Chrome 34 (7466489d)

Performance Improvements #

  • NodeCursor: Do not duplicate child nodes (45436680)
  • _ElementSelector: Remove recursion in addDirective (2fbb60b5)
  • interpolate: 20%. Cache the interpolated expressions. (669d47ce)
  • selector: Remove an useless check (6fea97d4)
  • tagging_view_factory: Move a test out of the loop (e4f7e349)
  • view factory:
    • Compute DI Keys ahead of time (317c23c0, #1085)
    • Remove try-finally from ElementBinder._link (60626104)
    • Remove a try-catch and a timer for the critical path (9f4defef)
  • watch group: Do not use for tiny lists (61f33489)

Breaking Changes #

Zone.defaultOnScheduleMicrotask is now named Zone.onScheduleMicrotask

v0.11.0 ungulate-funambulism (2014-05-06) #

Highlights #

Breaking Change #

The breaking change first: Http.getString() is gone.

If you said: Http.getString('data.txt').then((String data) { ... }) before, now say Http.get('data.txt').then((HttpResponse resp) { var data =; ... });

New Features #

  • Shadow DOM-less components

Shadow DOM is still enabled by default for components. Now, its use can be controlled through the new useShadowDom option in the Component annotation.

For example:

  selector: 'my-comp',
  templateUrl: 'my-comp.html',
  useShadowDom: false)
class MyComp {}

will disable Shadow DOM for that component and construct the template in the "light" DOM. Either omitting the useShadowDom option or explicitly setting it to true will cause Angular to construct the template in the component's shadow DOM.

Adding cssUrls to Components with Shadow DOM disabled is not allowed. Since they aren't using Shadow DOM, there is no style encapsulation and per-component CSS doesn't make sense. The component has access to the styles in the documentFragment where it was created. Style encapsulation is a feature we are thinking about, so this design will likely change in the future.

  • bind-* syntax

We have shipped an early "preview" of the upcoming bind-* syntax. In 0.11.0, you may bind an expression to any mapped attribute, even if that attribute is a @NgAttr mapping which typically takes a string.

Performance improvements #

There are two significant performance improvements:

  • We now cache CSS as StyleElements instead of string, saving a setInnerHtml call on each styled component instantiation. In a benchmark where components used unminified Bootstrap styles (124kB), this sped up component creation by 31%.
  • Changes in the DI package sped up View instantiation by 200%. This change makes AngularDart rendering significantly faster.

Bug Fixes #

  • Animate: Animation rename types. (70b2e408)
  • Change detection: _LinkList items extend _LinkedListItem (2960d7c2, #932)
  • Dirty Checking: fix watching methods/closures (d71c7fa7, #999)
  • ShadowDomComponentFactory: annotate ShadowDomComponentFactory with @Injectable so that appropriate entry in static factories in generated. (61ce182d, #963)
  • StaticMetadataExtractor: Map members annotations to all annotations (9622318e, #904)
  • angular_spec: Acutally assert (aae2c1f9)
  • change-detection: correctly detect isMethod in StaticFieldGetterFactory (474b002e)
  • codegen: Add missing @Injectable annotation (a4375192)
  • dccd: Fix _MapChangeRecord (36923850)
  • interpolate: changes the interpolate function to escape double quotes (806ed695, #937)
  • ngModel: add input type tel to ngModel directive (a91bbca8)
  • specs: toHaveText merges shadow DOM correctly (d4127643)
  • symbol_inspector: Do not return private symbols (a66b2c13)
  • tests: Use updated annotation type (c93a1bde, #948)
  • transformer:
  • travis: Curl should follow redirects when fetching scripts (40563c89)

Features #

Performance Improvements #

  • compiler: 31%. Cache CSS in Style elements. (cd2594da)

Breaking Changes #

The deprecated Http.getString() method has been removed in favour of Http.get()

v0.10.0 ostemad-teleportation (2014-04-17) #

NOTE: Contains significant BREAKING CHANGES!

Bug Fixes #

  • DateFilter: cache DateFormat correctly (64cf96f1, #882)
  • NgA: Do not cause a scope digest (de21f4de, #810)
  • NgControl: Remove dead code (b30ebe0f)
  • angular.core: re-export required annotations (6a9ea37c)
  • animation: temporary fix for Animation symbol conflict (82b4f3e1)
  • application_factory: add missing @MirrorsUsed targets (b5e835a0, #911)
  • bootstrap: Rename bootstrapping methods (155582d1)
  • change-detection: When two identical pure functions removed (84781ef3, #787, #788)
  • change-detection: properly watch map['key'] constructs (03f0a4c7, #824)
  • cookies: Make sure Cookies is injectable. (8952cbdd, #856)
  • core: ensure change detection doesn't trigger an infinite loop while not in debug mode (6ac105c9)
  • dirty-checking:
    • handle simultaneous mutations and ref changes (28a79bc2)
    • fix removal of watch record on disconnected group. (d22899aa)
  • doc: add angular.core.annotation lib to docs (ad2e6b0e)
  • docs: reenable broken doc generation (e925a143)
  • events: make ShadowRootEventHandler play nice with static injection (d7683218)
  • example: Adjust MirrorsUsed to make the Todo example work thru dart2js (ee4a448b)
  • export: Add missing NgController to angualr.dart (7475ccc4)
  • filters:
  • forms: change valid_submit and invalid_submit to camelcase (e5baa502, #793)
  • http: fix header map type for (a6cc826a)
  • jasmine: don't swallow exceptions in afterEach (ae15983d)
  • mirror: added missing mirrors declarations (0ebb49f8)
  • mock: export test_injection from module (70546ca5)
  • mustache: fix regression that fired an initial empty string (c71b8cfc, #734)
  • ng-model: Do not use valueAsNumber to work around (019209e7, #694)
  • ng-repeat: don't use iterable.length (cf2671ab)
  • ng-view: correct infinite loop in RouteProvider injection (be902f46)
  • ng_mustache: actually assign to _hasObservers (61c953d9)
  • parser: changes parser to throw an error when it encounters an unexpected token (7c26ab0d, #830, #905)
  • profiler: Fix API (f032b376)
  • scope: allow watching an empty string (bd0d4ffd)
  • startup: Avoid creating rarely needed objects (29bda806)
  • tagging-compiler: support top level comments (dc75b016)
  • test: fixes for latest unittest lib (c8527208, #811)
  • transformer:
    • Serializing execution of transformers (8b06e673, #889)
    • crashes in metadata extraction while in pub serve (e35a5e17, #888)
    • Transformer needs html5lib 0.9.2 (b52323e4)
  • transformers:
    • fix accidental breakage due to library rename. Added tests. (88593eec)
    • fix breakage from commit 3fb218180b17bdc9808e575e3a9aaf9928fef28b (5caadbf1)
  • watch_group: remove debugging print statement (93c7b9af)

Features #

  • AstParser: Made the AST parser private to the scope (8944f0d9)
  • NgAnnotation: Use module parameter to publish types. (5ec7e831, #779)
  • NgBaseCss: Add NgBaseCss, which adds css files to all components (06fc28a3)
  • Scope:
  • deploy: Move all reflection behind separate import (9bf04eba)
  • directives: Add deprecated warning to applyAuthorStyle, resetStyleInheritance (779ccb80, #838)
  • event_spec: Add aaddTest to run an event test in an iit (a5999863)
  • expect:
    • toHaveText handles shadow DOM. Deprecates JQuery.textWithShadow (0384346d)
    • Move JQuery.text to Expect.toHaveText() and element.text (dfe84d8f)
  • http: Allow overriding of recording URL. (6ecf1d54, #872)
  • karma: Allow Firefox to execute Karma tests (4a6234b3)
  • metadata extractor: Cache the fieldMetadataExtractor for greater performance (63c229c7)
  • ng-model: support input type=date | datetime and all other date/time variants (90e0e076, #747)
  • ngElement: add support for attributes (581861e5)
  • ngRepeat: make use of the new change detection (09871cb2)
  • parser: Add support for named arguments. (18ceb4df, #762)
  • routing: allow routing to view html (cdc89c43, #425, #908)
  • selector: Collect bind- attributes. More tests. Cleanup (4707826b)
  • template_cache_generator: Support custom template path resolution (f5bf7eff, #923)
  • transformers: Add angular transformers to pub for no-mirror code generation (3fb21818)
  • travis:
  • view factory: Each css file has its own <style> tag (4c81989f)

Performance Improvements #

  • DirtyCheckingChangeDetectorGroup: Disable calls to _assertRecordsOk(). (d6b9bb70, #813)
  • compiler: 45x speedup. Cache the attribute keys. (556ef5cf)
  • element_binder: use every rather than reduce (27e2845d)

Breaking Changes #

  • NgAnnotation: due to 5ec7e831, publishTypes parameter is removed.

      publishTypes: [FooInt]
    class Foo extends FooInt {


      module: Foo.module,
      visibility: NgDirective.LOCAL_VISIBILITY
    class Foo extends FooInt {
      module() => new Module()
                  (i) => i.get(Foo),
                  visibility: NgDirective.LOCAL_VISIBILITY)

    Closes #779

  • bootstrap: due to 155582d1,

    • import:

      • angular/angular_dynamic.dart -> angular/application_factory.dart
      • angular/angular_static.dart -> angular/application_factory_static.dart
    • functions:

      • dynamicApplication() -> applicationFactory()
      • staticApplication() -> staticApplicationFactory()
  • forms: due to e5baa502, All form code that uses control.valid_submit and control.invalid_submit will throw an error. Instead use control.validSubmit and control.invalidSubmit to checkthe submission validitity on a control.

    Closes #793

  • selector_spec: due to c03c538d, This relaxs the assumption that directives will be created in the same order everywhere. For #801

  • nameing: due to f055ab6f Closes #902

    BREAKING CHANGE: These are the renames

    • Concepts:

      - Filter                        -> Formatter
    • Importing:

      - angular/directive/ng_a.dart   -> angular/directive/a_href.dart
      - angular/filter/currency.dart  -> angular/formatter/currency.dart
      - angular/filter/date.dart      -> angular/formatter/date.dart
      - angular/filter/filter.dart    -> angular/formatter/filter.dart
      - angular/filter/json.dart      -> angular/formatter/json.dart
      - angular/filter/limit_to.dart  -> angular/formatter/limit_to.dart
      - angular/filter/lowercase.dart -> angular/formatter/lowercase.dart
      - angular/filter/module.dart    -> angular/formatter/module.dart
      - angular/filter/number.dart    -> angular/formatter/number.dart
      - angular/filter/order_by.dart  -> angular/formatter/order_by.dart
      - angular/filter/stringify.dart -> angular/formatter/stringify.dart
      - angular/filter/uppercase.dart -> angular/formatter/uppercase.dart
    • Types:

      - NgA                           -> AHref
      - NgAttachAware                 -> AttachAware
      - NgDetachAware                 -> DetachAware
      - NgShadowRootAware             -> ShadowRootAware
      - NgFilter                      -> Formatter
      - NgInjectableService           -> Injectable
      - AbstractNgAnnotation          -> Directive
      - AbstractNgFieldAnnotation     -> DirectiveAnnotation
      - NgComponent                   -> Component
      - NgController                  -> Controller
      - NgDirective                   -> Decorator
      - NgAnimate                     -> Animate
      - NgZone                        -> VmTurnZone
      - NgAnimationModule             -> AnimationModule
      - NgCoreModule                  -> CoreModule
      - NgCoreDomModule               -> CoreDomModule
      - NgAnimationDirective          -> NgAnimation
      - NgAnimationChildrenDirective  -> NgAnimationChildren
      - FilterMap                     -> FormatterMap
      - NgAttrMustacheDirective       -> AttrMustache
      - NgTextMustacheDirective       -> TextMustache
    • Constants

      - NgDirective.LOCAL_VISIBILITY           -> Directive.LOCAL_VISIBILITY
      - NgDirective.CHILDREN_VISIBILITY        -> Directive.CHILDREN_VISIBILITY

v0.9.10 llama-magnetism (2014-03-20) #

Bug Fixes #

  • Filter: Add support for maps (b32beecf)
  • Jasmine: Execute AfterEach methods (71b2855c)
  • NgModel: ensure DOM value changes are only applied during scope.domWrite (419e9189)
  • NgModelValidators: ensure all validators can properly toggle attribute values (98143034)
  • NodeAttrs: lazy init of observer listeners (144eb4c7)
  • animation: correct broken build (9891f333)
  • change_detection:
    • should properly support objects with equality (9b480dad, #735, #670)
    • leaking watch records when removing deeply nested watch_groups (1ba5befb, #700)
    • don't call reactionFn on deleted scope (0aacdc4f)
  • compiler: Remove the Block/BlockFactory typedefs (9b790f49)
  • component: revert regression of injecting Element/Node into Component (d9fc724e)
  • forms:
    • ensure models are validated when validator attributes change (0622f3a9)
    • consider forms as pristine only when all the inner models are non-dirty (4458ce8e)
    • store models instead of controls within the collection of errors (2928ae71)
  • i18n: properly restore locale after test WARNING (f16536ee)
  • jasmine syntax: Drop the wrapFn concept and let _specs.dart handle the sync wrapper (1e971e6b)
  • jquery: Deprecate renderedText() in favour of JQuery.textWithShadow() (364d9ff7)
  • ng-class: remove previously registered watch (8b54f5e6, #725)
  • ng-repeat: should correctly handle detached state (775bbce4, #697)
  • ng-style: watch in RO mode (51ee3298, #721)
  • presubmit:
    • Set new token; correct env variable name (53aeb4aa)
    • use https protocol for push (a2845a50)
    • correct presubmit authentication (8b430d10)
  • scope:
    • allow concurrent fire/add/remove on listeners (e6689e37)
    • should allow removing listener during an event (4662d494, #695)
    • add scope id for easier debugging. (5a368087)
  • tagging compiler:
  • zone: Avoid silently ignoring uncaught exceptions by default. (7bb1944e, #710)

Features #

  • NgModel: introduce parsers and formatters (bed9fe15)
  • Scope: Improve ScopeStats reporting (1954e9e2, #744)
  • compiler:
    • Make the TaggingCompiler the default compiler (3ed50b5e)
    • Tagging compiler (59516afb)
    • Initial TagggingCompiler implementation (80163401)
    • ViewFactory now takes a list of ElementBinders (eb559ad0)
    • Add an ElementBinder class and return it from Selector (41bc9a40)
  • core_dom: introduce NgElement (1afa0b61)
  • doc:
    • Animation library documentation updates and fixes. (613030a0, #760)
    • Library description for angular.animate (0576f278)
  • element binder:
    • Make ElementBinder non-recursive and create an external tree (811b4607)
    • ElementBinder.bind (b1a518bd)
  • filters: revert filter being restricted to top level (66cda204)
  • forms: append valid/invalid CSS classes for each validator on all controls (574065f5)
  • jasmine: beforeEachModule syntax and injectifying its (4019046f, #727)
  • jquery: Add shadowRoot() and use it in templateurl_spec (e1745c60)
  • mock zone: isAsyncQueueEmpty (c834837d)
  • mustache: Move unobserved mustache attributes to the flush phase (56647a36, #734)
  • selector: DirectiveSelector is real now: matchElement, matchText (eb4422a9)
  • spec: Ignore ng-binding classes in html() (441daf79)
  • tagging compiler:
  • travis: Seperate Chrome and Dartium into two different jobs. (7c5bdb01)
  • EventHandler Add support for on-* style events (c28e6a02)

v0.9.9 glutinous-waterfall (2014-03-10) #

Bug Fixes #

  • DateFilter:
  • Directive: remove publishAs from NgDirective to avoid confusion. (7ee587f6, #396)
  • MetadataExtractor: ignore typedefs (37f1c321, #524)
  • NgAttachAware: revert to original behavior and define stronger test (500446d1)
  • NgAttrMustacheDirective: support parsing of multiline attribute values (a37e1576)
  • NgComponent:
    • Handle errors while loading CSS (b5aa130f, #411)
    • Drop cssUrls, leaving cssUrl only (92ed26fb)
    • attach method was called earlier rathe then later. (3c594130)
  • NgForm:
    • always return the first matching control when using map notation on a NgForm instance (95e66d6b)
    • use map notation for controls and dot notation for instance properties (0cc1217b)
  • NgModelValidators: ensure that number input types render invalid when non-numeric characters are present (476a8dbf)
  • NodeCursor: Removes nodeList() in favor of current (aaae1d60, #644)
  • WatchGroup: don't call reaction functions on removed WatchGroups (a7cabe35)
  • angular: export GetterCache from dccd (c1655e8c)
  • binding: call attach when attribute is not specified (1cb8eb9f)
  • block_factory:
    • should not load template or call onShadowRoot when scope is destroyed (2e403504)
    • should not call attach when scope is destroyed (72708e33)
  • bouncing_balls: ball number can not go below 0 (6de4f810)
  • change-detection:
    • correctly process watch registration inside reaction FN. (d6bc9ab8)
    • Fix the handling of NaN & string values for maps (156d6386)
    • Fix for comparing string by value (11f1bd87)
    • reset next/prev on watchGroup.marker (4dfa2676)
    • delay processing watch registration inside reaction fn. (cd4e2e3d)
    • remove memory leak, use iterator (75fbded7)
    • remove memory leak (847af41f)
    • corrected adding group to sibling which had children (8583d08b)
  • change-detector: handle double.NAN for collections (in JS) (07f9b240)
  • compiler:
    • don't wait indefinitly for non-null value on =>! (5451d63d)
    • ensure parent controllers are exposed within the scope of their children (cad8cc4a, #602)
    • support filters in attribute expressions (8f020f99, #571, #580)
  • di: Upgrade dependency of package di preventing problems with dart sdk 1.1 resolves #408 (1f85a8ce, #408, #583)
  • dirty_checking_change_detector: correctly truncate collection change record (c1937b4e, #692)
  • doc: Correct markdown for ElementProbe (5783de44)
    • Use a consistent name for the library (3f541fa4)
  • doc-gen:
    • add docviewer flags for generating the new angulardart docs (99d9f2ae)
    • (9a1ef31d)
  • dynamic_parser: Handle reserved words correctly (271ecec0, #614)
  • eval access: Do not crash on null cached value (bbcbd3e7, #424)
  • forms:
    • do not reset input fields on valid submission (24e9c3dd)
    • ensure fields, fieldsets & forms are marked as dirty when modified (ad60d55a)
    • treat with no type as type="text" (8f0a8a7f)
  • generator:
    • remove invalid sort on elements (e2a00abe, #554)
    • write files in sorted order for predictable tests (79b7525a)
    • Write URI in sorted order to prevent SHA churn (217839ef)
  • http_spec: implement lastModified getter (e719e75e)
  • introspection:
  • ng-attr: remove camel-cased dom attributes (b5e45117, #567)
  • ng-class: array syntax should not insert nulls (b982e326, #513)
  • ng-event: don't double digest (c38989a4)
  • ng-pluralize: use ${..} to interpolate (a630487d, #572)
  • ng-value: Add ng-value support for checked/radio/option (8fc2c0f4)
  • ngControl: unregister control from parent on detach (4c9b8044, #684)
  • ngModel:
    • ensure checkboxes and radio buttons are flagged as dirty when changed (5766a6a1, #569, #585)
    • process input type=number according to convention, using valueAsNumber (cf0160b8, #574, #577)
    • ensure validation occurs when the model value changes upon digest (f34e0b31)
    • evaluate user input using onInput instead of onKeyDown (64442974)
  • ngShow: Add/remove ng-hide class instead of ng-show class (0b88d2e8, #521)
  • package.json: add repo, licenses and switch to devDependencies (d099db59, #544, #545)
  • parser:
    • disallow filters in a chain and inside expressions (5bcea649)
    • Correctly distinguish NoSuchMethodError (bde52abe)
  • parser, scope: Allow nulls in binary operations. (59811752, #646)
  • parser_generator: use parser getter/setter generator instead (42c8d8c8)
  • readme: Read the Travis badge (6fe5692b)
  • routing: correctly scope routing to ng-app (3ab250a7)
  • scope:
    • fix null comparisons (fb0fe0e3, #646)
    • incorrect stage message (2169a950)
    • correctly setup NgZone onError handler with ExceptionHandler (e8bc580c)
    • return null to supress an analyzer error (fad457e9, #594)
    • correctly handle canceled listeners bookkeeping (259ac5b1)
    • should not trigger assertions on fork (484f03dc)
    • skip scopes without event on broadcast (ae22a6f3)
    • createChild now requires context (6722e1a4)
    • improve error msg on unstable model (c9bf23a0)
    • allow sending emit/broadcast when no on() (d9dfe0f8)
    • Use Iterable instead of List (951fa178, #565)
    • use correct filters when digesting scope tree (95f6503f)
  • select: Corrected NPE if select multiple nested in ng-if (6228692b, #428)
  • selector: Allow two directives with the same selector (467b935e, #471, #481)
  • template_cache_generator: support traversal of partial files (f918d4dd, #662)
  • watch_group: prevent removed watches from firing (a558a26f)

Features #

  • Animation: Animation for AngularDart. (5a36e773, #635)
    • introduce ng-animate and ng-animate-children. (88d2af6f, #661)
  • NgForm: provide access to non-uniquely named control instances via form.controls (6099c037, #642)
  • NgModelValidator:
    • perform number validations on range input elements (710cd5b0, #682)
    • provide support for min and max validations on number input fields (7dc55fbf)
  • Scope: Brand new scope implementation which takes advantage of the new change detection (390aea5e)
  • block:
  • blockhole: Change blockhole to have the insert / remove / move methods. (c1e70ce8, #689)
  • change-detection: Initial implementation of new change-detection algorithm. (d0b2dd95)
  • doc: Documentation generation for NgAnimateModule. (a029ac5e)
  • doc-gen: Use new docviewer for generating docs (67fcafff)
  • forms:
    • use the ng-form attribute as the name of the inner form (8b989b6d, #681)
    • introduce the control.hasError helper method (7b75af44)
    • expose getters for submitted, valid_submit and invalid_submit (9daaa0fc, #601)
    • provide support for touch and untouched control flags (634c62b1, #591)
    • generate ng-submit-valid / ng-submit-invalid CSS classes upon form submission (4bf9447c)
    • provide support for reseting forms, fieldsets and models (c75202d5)
    • add a test for input type="search" (87a60d1f)
  • ngModel:
    • Treat the values of number and range inputs as numbers (e703bd1b, #527)
    • support the input[type="search"] field (ff736d92, #466)
  • ngRepeat: add track by support (07566457, #277, #507)
  • routing: new DSL and deferred module loading (3db9ddd3)
  • sanitization: make NodeValidator injectable (47ab48ad, #490, #498)
  • scope:
    • add scope digest stat collection (c066923d, #609)
    • add internal streams consistency checks (65213c30)
    • Experimental: Watch once, watch not null expressions (84762b10)
    • Allow expressions on non-scope context (e4dfb469)
  • scope2: Basic implementation of Scope v2 (3bde820e)
  • scripts: robust (ffe43c6c, #586)
  • zone: Allow escaping of auto-digest mechanism. (2df2660d, #557)

Performance Improvements #

  • change-detection: optimize DirtyCheckingChangeDetector.collectChanges() (4453e3e8, #693)
  • scope:


0.9.9 contains a major overhaul to the change-detection algorithm which is used behind the scenes during scope digests. As a result, much of the scope API has changed to facilitate this new feature.

The biggest change is how scope properties are assigned on the scope. With earlier versions of AngularDart, the scope object itself was treated like a map and any property accessed using square brackets would either set or get the associated value. With 0.9.9 this will not produce the same effect. Instead all scope property getter and setter operations are to be facilitated within the scope.context member. So in other words, all the scope property reading and writing that was done in earlier versions is now done the same way, but on the scope.context member.

// < 0.9.9
scope['prop'] = 'value'; //set
scope['prop']; //get

// >= 0.9.9
scope.context['prop'] = 'value'; //set
scope.context['prop']; //get

Breaking Changes to the Scope API #

1. scope.$watch() is now

//old code
scope.$watch('a.b.c', () {});

//new code (no more $ prefixing)'a.b.c', (value, previous) {});

2. scope context changes

//old code
scope.$watch(() =>; () {});

//new code (notice the context property)'foo', (value, _) {}, context: o);

3. watch de-registration

//old code
var stopWatch = scope.$watch(...);

//new code
Watch watch =;

4. Replace scope-level digests

//old code

//new code

//Digest is now split between digest/flush so we need apply to call them both.

5. Changes to scope event listeners

//old code
scope.$on('foo', (e, data) {});

//new code
scope.on('foo').listen((e) {var data =;});

//old code
scope.$on('foo', (e, a, b, c) {});

//new code
scope.on('foo').listen((e) {MyEvent data =;});

//old code
scope.$emit('foo', [a]);

//new code
scope.emit('foo', a);

//old code
scope.$emit('foo', [a, b ,c]);

//new code
scope.emit('foo', new MyEvent(a, b, c));

6. Creating new scopes

//old code

//new code
scope.createChild(new PrototypeMap(scope.context)));

//We have plans to allow any object to be the context.
//The PrototypeMap is a way to maintain consistent behavior.

7. EvalAsync

//old code
scope.$evalAsync(() => null);

//new code
scope.runAsync(() => null);

//old code
    () => null,
    outsideDigest: true);

//new code
scope.domRead(() => null);

8. scope.$$verifyDigestWillRun() has been removed

There is currently no replacement. We feel that we have the zone under control and there is no need for this method any more.

9. scope.$disabled has been removed

There is currently no replacement.

10. Watching collections

//old code
scope.$watchSet(['', ''], (values) {...});

//new code'[,]', (vars, _) {
  var ctrlFoo = vars[0];
  var ctrlBar = vars[1];

v0.9.8 cozy-porcupine (2014-02-19) #

Bug Fixes #

  • DateFilter: fix a wrong type (cec3edad, #579)
  • compiler: support filters in attribute expressions (8f020f99, #571, #580)
  • di: Upgrade dependency of package di preventing problems with dart sdk 1.1 resolves #408 (1f85a8ce, #408, #583)
  • doc-gen: (9a1ef31d)
  • generator: remove invalid sort on elements (e2a00abe, #554)
  • ng-attr: remove camel-cased dom attributes (b5e45117, #567)
  • ng-pluralize: use ${..} to interpolate (a630487d, #572)
  • ng-value: Add ng-value support for checked/radio/option (8fc2c0f4)
  • ngModel:
    • ensure checkboxes and radio buttons are flagged as dirty when changed (5766a6a1, #569, #585)
    • process input type=number according to convention, using valueAsNumber (cf0160b8, #574, #577)
    • ensure validation occurs when the model value changes upon digest (f34e0b31)
  • ngShow: Add/remove ng-hide class instead of ng-show class (0b88d2e8, #521)
  • package.json: add repo, licenses and switch to devDependencies (d099db59, #544, #545)
  • scope: Use Iterable instead of List (951fa178, #565)

Features #

  • forms:
    • generate ng-submit-valid / ng-submit-invalid CSS classes upon form submission (4bf9447c)
    • provide support for reseting forms, fieldsets and models (c75202d5)
  • ngModel: Treat the values of number and range inputs as numbers (e703bd1b, #527)

Breaking Changes #

  • ng-attr
    • Due to (b5e45117, mappings in annotations must use snake-case-names instead of camelCaseNames.  To migrate your code, follow the example below:


          // …
          map: const {
            'domAttributeName': '=>fieldSetter'
      class MyComponent { …


          // …
          map: const {
            'dom-attribute-name': '=>fieldSetter'
      class MyComponent { …

v0.9.7 pachyderm-moisturization (2014-02-10) #

Bug Fixes #

  • MetadataExtractor: ignore typedefs (37f1c321, #524)
  • NgAttrMustacheDirective: support parsing of multiline attribute values (a37e1576)
  • NgComponent:
  • eval access: Do not crash on null cached value (bbcbd3e7, #424)
  • forms: ensure fields, fieldsets & forms are marked as dirty when modified (ad60d55a)
  • generator:
    • write files in sorted order for predictable tests (79b7525a)
    • Write URI in sorted order to prevent SHA churn (217839ef)
  • input: treat <input> with no type as type="text" (8f0a8a7f)
  • ng-class: array syntax should not insert nulls (b982e326, #513)
  • ngModel: evaluate user input using onInput instead of onKeyDown (64442974)
  • parser:
    • disallow filters in a chain and inside expressions (5bcea649)
    • Correctly distinguish NoSuchMethodError (bde52abe)
  • scope: use correct filters when digesting scope tree (95f6503f)
  • select: Corrected NPE if select multiple nested in ng-if (6228692b, #428)
  • selector: Allow two directives with the same selector (467b935e, #471, #481)

Features #

v0.9.6 fluffy-freezray (2014-02-03) #


We reserve the right to change the APIs in v0.9.x versions.

Bug Fixes #

  • Directive: remove publishAs from NgDirective to avoid confusion." (7ee587f6, #396)
  • NgAttachAware: revert to original behavior and define stronger test (500446d1)
  • NgComponent: attach method was called earlier rathe then later. (3c594130)
  • doc: Using a consistent name for the library (3f541fa4)
  • routing: correctly scope routing to ng-app (3ab250a7)

Features #

  • change-detection: Initial implementation of new change-detection algorithm. (d0b2dd95)
  • ngModel: support the input[type="search"] field (ff736d92, #466)

v0.9.5 badger-magic (2014-01-27) #


We reserve the right to change the APIs in v0.9.x versions.

Bug Fixes #

  • Directive: remove publishAs from NgDirective to avoid confusion. (c48433e0)
  • directive: call attach method ofter all bindings execute (11b38bae)
  • directives: cssUrl in NgComponent (952496b0)
  • docs: correct typo (4494ce70)
  • expression_extractor: implemented support for wildcard attr selector (1e403447, #447)
  • generator: Avoid compile-time filter map querying when generating static parser. (522ba49c)
  • ng-model: Allow ng-required to work on non-strings. (a7c3a8d8)
  • parser: Workaround dart2js bugs in latest version of Dart SDK 1.2. (dddc3c83)
  • scope: honor $skipAutoDigest on non-root scopes (7265ef7a)
  • todo: Fixing some dart2js compilation issues for todo demo (b8e97d9e, #453)

Features #

  • core: provide support to define the same selector on multiple directives (dd356539)
  • directive: Add ng-attr-* interpolation support (aeb5538e)
  • directives: Add support for contenteditable with ng-model (715d3d1e)
  • expression_extractor: Add source path to source crawler (6597f73f)
  • forms:
    • provide support for parent form communication (6778b62e)
    • add support for validation handling for multiple error types (d3ed15cb)
    • provide support for controls and state flags (d1d86380)
  • helloworld: MirrorsUsed (73b0dca8)
  • js size: Add a default @MirrorsUsed to Angular. (1fd1bd07, #409)
  • mock: support for JSON in HttpBackend (9d09a162, #236)
  • ngModel: provide support for custom validation handlers (e01d5fd7)
  • parser: Allow operator access to non-map, non-list objects (51e167b8, #416)

v0.9.4 supersonic-turtle (2014-1-13) #

Bug Fixes #

  • di: removed type parameters to accommodate di restriction (7646df6d)
  • doc: NgShadowRoot => NgShadowRootAware (303c12b8)
  • docs: typo (06ab9e75)
  • expression extractor: Fix and test (ff737732)
  • expression_extractor: fixed package roots (6b2c9921)
  • http_backend: don't swallow http request errors. (8cc26533)
  • input: corrected NPE when input goes away (e97b9d07, #392)
  • introspection: Search our shadowRoot as well (6549c982)
  • ng_model: Disable a test that did not pass in content_shell (a3da7310)
  • parser: pass analyzer v1.1.0 (e61e0375)
  • scope:
    • fix $properties not visible using [] (4345857b)
    • Also check for UnimplementedError when reflecting on source (1d870ba4)
  • sdk: Add support for Dart SDK 1.1 (9d6914ec)
  • selector: the required attribute should properly work with ng-required (472d764e)

Features #

  • NodeAttrs:
    • implement the keys getter and containsKey() (1a7d4a42)
    • Implement forEach to iterate over attributes (5c415135)
  • compiler:
    • A better error message for invalid selectors (99eab544)
    • Throw a useful error message on a missing NgComponenet selector (42692a14)
  • events: add missing ng-events (97bd4bc2, #386)
  • ng-pluralize: Implement the ng-pluralize directive (51d951e3)
  • scripts: automatic way of generating changelog.MD (11af25c8)
  • template_cache_generator: simple template cache generator (32e073b7)
  • travis: add travis support (fa3727f8)

Performance Improvements #

  • NodeAttrs: Remove one unnecessary call to snakecase (ad2a7d54)
  • bracket: Optimize calling methods on objects. (12f5f672)
  • parser:
  • scope:
    • Compute perf counters as part of the fast dirty check if possible. (1932110c)
    • Make the digest loop easier to optimize by splitting it into smaller and simpler methods. (46123637)

v0.9.3 reverse-telekinesis (2013-12-16) #


We reserve the right to change the APIs in v.0.9.x versions.

Bug Fixes #

  • expression_extractor:
    • support for inline templates (898ec6d8, #186)
    • do not fail when source file doesn't exist (887e1bff)
  • ng-repeat: ng-repeat support for Iterable (080bb0a6, #292)
  • ng_model: do not save/restore selection unnecessarily (3c805483, #264)
  • scope:
    • log firing expressions in the watchLog (cfa97d68, #258)
    • remove GC pressure created by watchCollection getter (a435a8f2)
  • todo demo: Return the correct CSS class for TODO items in the demo. (217a57ec)

Features #

  • NgComponent: Support multiple css files (6c6151cf)
  • cookies: Basic Cookies service/wrapper over BrowserCookies (6efde83e)
  • mocks: provide support for child scope parameters in compile (2d2c5219)
  • ng-model: implemented support for input[type=password] (058c8ee4)

Performance Improvements #

  • bracket: Optimize calling methods on objects. (525eeadb)
  • digest: Use linked list for watchers (7b6b0e5d)

v0.9.2 limited-omnipotence (2013-12-02) #


We reserve the right to change the APIs in v.0.9.x versions.

Bug Fixes #

  • expression_extractor: support extracting expresions from attr mapping annotations (76fbac8c, #291)
  • filters: Fix filters in the code-gen parser (8b2c3b62)
  • ng-class: exportExpressionAttrs for ng-class, ng-class-odd, ng-class-even (cecf3b6d)
  • parser:
    • Add ternary support to the static parser (e37bd8f7)
    • Add caching to the dynamic parser. (9cdd77a5)
  • static parser: Allow newlines in expressions. (d21817ff, #297)
  • syntax: warnings in directive code (1f3e3f72)

Features #

  • parse:
  • di: introduced @NgInjectableService to make di codegen easier (54328d78)
  • interpolate: use $watchSet to remove memory pressure (283ea257)
  • ngForm: introduce basic support for the form directive (26ca46d8)
  • parser_generator: allow specifying output file (0615456e)
  • probe:
    • add ngQuery which can cross shadow root boundaries (20897917)
    • Access injector, scope, directives from REPL (70c3e8d3, #305)
  • repeater:
  • scope:

v0.9.1 elemental-mimicry (2013-11-18) #


We reserve the right to change the APIs in v.0.9.x versions.

Bug Fixes #

  • don't create watchers for <=> => and =>! attributes if attribute is not specified on the element (6ea6af8b, #265)
  • ng-view does not clear template when route is deactivated (6acb2c32, #245)

Features #

v0.9.0 static-animation (2013-11-04) #

Initial beta release of AngularDart available for public testing.


We reserve the right to change the APIs in v.0.9.x versions.

Features #

  • Notable Directives: input, ng-bind, ng-class, ng-events, ng-if, ng-include, ng-model, ng-show\hide, ng-switch, ng-template.

  • Notable Services: Compiler, Cookies, Http, ExceptionHandler, Scope.

  • Notable Filters: currency, date, filter, json, limitTo, number, orderBy

Missing Features #

  • Forms / Validation: has not made it into AngularDart yet.

Semantic Version Conventions #

  • Stable: All even numbered minor versions are considered API stable: i.e.: v1.0.x, v1.2.x, and so on.
  • Development: All odd numbered minor versions are considered API unstable: i.e.: v0.9.x, v1.1.x, and so on.