angular
angular copied to clipboard
Fast and productive web framework provided by Dart
I was creating a money mask directive, in my app I came across this problem, because in my mascara implementation I use the "event.preventDefault ();" in the onKeyDown event to...
app_component.dart: ```dart import 'package:angular/angular.dart'; import 'package:angular_components/material_input/material_input.dart'; import 'package:angular_forms/angular_forms.dart'; @Component( selector: 'my-app', styleUrls: ['app_component.scss.css'], templateUrl: 'app_component.html', directives: [ coreDirectives, formDirectives,// for material input MaterialInputComponent, MaterialInputDefaultValueAccessor, ], ) class AppComponent { AppComponent()...
Hi. I have pipe for connecting data from redux store: ```dart import 'package:angular/angular.dart'; import 'package:redux/redux.dart'; typedef Selector = dynamic Function(K state); @Pipe('stateRef', pure: false) class ConnectPipe extends PipeTransform { final...
I have a component routed by 2 different `RoutePath` objects. I want to check which route is used in `onActivate` with code like this: ```dart @override void onActivate(RouterState previous, RouterState...
In cases where there are multiple different AngularDart applications on a page which use the same root component (but potentially different injector factories), it would be nice to have the...
As far as my understanding about the structural directives goes, `@HostBinding` and friends will not work with them because it will attach them to the `` in the background, which...
Given the following component definition ```dart @Component( selector: 'app', template: '', providers: [ ClassProvider(A), ClassProvider(B), ClassProvider(C), ], ) class AppComponent {} ``` the compiler generates code capable of providing all...
``` @Component(selector: 'test-component', directives: const [NgIf, NgFor], template: 'It works!') class TestComponent { ... ``` produces the following HTML: ``` It works! ``` If for some reason you were not...
* [ ] Top-level methods: ```dart void Function() overrideTopLevelDoCapture = () {}; void topLevelDoCapture() { overrideTopLevelDoCapture(); } @Component( selector: 'test', exports: [topLevelDoCapture], template: r'', ) class TestTopLevelMethods {} ``` ......
`DomElementSchemaRegistry` claims to have any property for tag names that contain a `'-'`. My suspicious is this was included for Polymer interoperability, but this masks very useful errors about incorrect...