angular
angular copied to clipboard
Fast and productive web framework provided by Dart
As mentioned by internal customers and @leonsenft, the _Expression has changed after it was checked_ check has been broken for some time due to an earlier refactor and no real...
During our internal code-lab, a new user hit the following issue: ```dart // thumbs.dart import 'dart:async'; import 'package:angular/angular.dart'; @Component( selector: 'thumbs-change', template: r''' Click ''', ) class ThumbsComponent { final...
A user on Gitter hit the following stack trace using `angular_components`: ``` EXCEPTION: No provider found for TemplateRef STACKTRACE: dart:sdk_internal 4835:29 throw package:angular/src/di/injector/injector.dart 19:3 throwsNotFound package:angular/src/di/injector/injector.dart 90:14 get package:angular/src/core/linker/app_view.dart 313:28...
_(Internal bug is [b/31268465](b/31268465).)_ An internal customer writes: > Currently, there isn't anything reminding or preventing users from leaving unused directives in the list of directives needed by the component...
It would be very nice to remove support for `if (null)`, since this isn't supported in Dart: https://github.com/dart-lang/angular/blob/c08a1bec6410357e45f4097a2210be370ce0ec2b/angular/lib/src/compiler/view_compiler/property_binder.dart#L673-L676 I imagine this a breaking change for our users.
Since https://github.com/dart-lang/angular/commit/cfab80fa46e9388f5a7defe46951e8839619b842, we can now use an `OpaqueToken` directly as an annotation instead of having to wrap it in `@Inject()`. Here is the example from that commit: ```dart const baseUrl...
Duplicate template reference variable "declarations" can lead to confusing results. It would be great if the new template compiler would report this as an error. E.g., ```html ... ``` cc...
Today, `{file}.template.dart` has the following: ```dart export `'{file}.dart'`; ``` ... this ~is~ used to be needed for deferred loading, for example, but also confuses the IDE when everything from the...
The `ElementRef` API existed entirely to abstract away the DOM in early versions of Angular: ```dart abstract class ElementRef { dynamic get nativeElement; } ``` AngularDart only supports running in...
Had a nice discussion today, why do we even _have_ `@Optional`? ```dart class Animal { Animal(@Optional() Ecosystem ecosystem); } ``` ... since Dart has this already, in both positional and...