Questions tagged [angular-dart]

AngularDart is a web app framework that focuses on productivity, performance, and stability.

AngularDart is a web-app framework for creating structured web applications in Dart.

AngularDart is distinct from Angular. It shares concepts and some API, but differs in implementation – taking advantage of Dart features such as classes and annotations.

Features

  • Reusable components
  • Bind models (Dart classes) to HTML markup
  • Deep linking
  • Form validation
  • Dependency injection
  • Testable

Links

1298 questions
6
votes
1 answer

Angular 2 Dart: How to detect click on everything but element?

On an app with a lot of different components within one component I have a custom Auto-suggest box. The box should be closed if the user clicks anywhere but on the Auto-suggest box (or containing elements of the auto-suggest box). This is what I…
Blackbam
  • 17,496
  • 26
  • 97
  • 150
6
votes
1 answer

EventEmitter is deprecated and shouldn't be used

In AngularDart 3.0.0 EventEmitter is deprecated. So, how to send event from child component to parent? Before update it is looks like: @Component( selector: 'my-test', templateUrl: 'test.component.html' ) class TestComponent { @Input() …
Cododoc
  • 125
  • 8
6
votes
2 answers

Dartlang: Using enums in Angular2 templates

can someone tell me if and how it is possible to use Dart enums in angular2 view templates? It's suggested in Typescript to copy the enum into a component-scope. This works because an enum in javascript is a simple instance variable with a…
Benjamin Jesuiter
  • 1,122
  • 1
  • 13
  • 24
6
votes
1 answer

Is PolymerDart dead? An architecture issue

Given the information at both the Polymer and Dart conferences in the last week, there is no information mentioned about the intersection of polymer and dart called PolymerDart at neither of them (except a passing wave, 2 word statement in 1 slide…
Fallenreaper
  • 10,222
  • 12
  • 66
  • 129
6
votes
1 answer

PolymerDart custom element with two-way binding to Angular.dart model

I managed to two-way-bind my Angular.dart model to paper elements using the bind- syntax: Now I want to create a custom component that can expose a property for two-way…
Ozan
  • 4,345
  • 2
  • 23
  • 35
6
votes
0 answers

Issue with angular dart module initialization

I recently upgraded angular dart to the recent version [0.13.0]. From then onward it is becoming very difficult just to initialize the application. I have spent around a week fighting with this. I get this error currently: The built-in library…
Amsakanna
  • 12,254
  • 8
  • 46
  • 58
6
votes
1 answer

I have an AngularDart component, how to get the text input field to auto-focus every time the component shows?

I have a text input in a AngularDart component like the following: How can I make the text input auto-focus every time the component shows? I tried setting the html5 attribute…
Phil
  • 46,436
  • 33
  • 110
  • 175
6
votes
2 answers

Angular - Polymer Interaction

I am planning to try a project in AngularJS in which all the components will be developed using Polymer. Now before starting this project, I have couple of queries: Can I update Polymer component data model (there by the UI too) after fetching data…
6
votes
2 answers

Other way that type() in angular dart

I did the angular dart tutorial and I have a question about it. To declare a type available for dependecy injection, I have to do this: class MyAppModule extends Module { MyAppModule() { type(RecipeBookController); } } And so on for all…
Kiva
  • 9,193
  • 17
  • 62
  • 94
6
votes
1 answer

Modular route design in Angular Dart to support independently developed feature sets?

[Updated to focus question]. AngularDart nicely supports modular app design in many respects. Is this also the case for route design? I.e., Question: Can an app have more than one RouteInitializer? E.g., would the following be possible: class…
Patrice Chalin
  • 15,440
  • 7
  • 33
  • 44
6
votes
1 answer

Is there a better way to reference a route by name in a link with AngularDart?

I have many named routes in my AngularDart app. I create links the old fashioned way, like this: Go That seems brittle. If I change the path or change the strategy away from hash change, I need to change all my links. Can…
Seth Ladd
  • 112,095
  • 66
  • 196
  • 279
6
votes
3 answers

d3.js won't work in a shadowDOM

I am building a tool that utilizes d3.js for data visualization. The tool relies on webcomponentss and the shadowDOM. d3.js is not able to select any nodes in the shadowDOM just by d3.select. Is there a way to get d3 working inside shadowdom or am I…
ins0m
  • 850
  • 10
  • 20
6
votes
2 answers

In Dart Angular, how to pass functions to component

I have a component MyComp and I would like to pass a function to it as parameter. More precisely I would like to do something like that: dart component file: @NgComponent( selector: 'mycomp', publishAs: 'ctrl', map: const { …
odwl
  • 2,095
  • 2
  • 17
  • 15
6
votes
1 answer

How do I get routes to work with AngularDart?

This is my code, import 'package:angular/angular.dart'; class AppModule extends Module { AppModule(){ type(AppController); type(LoginController); type(RouteInitializer, implementedBy: AppRouter); } } class AppRouter implements…
Johan Alkstål
  • 5,225
  • 9
  • 36
  • 48
6
votes
1 answer

Dart's Web Component vs Angular's Directive

Dart's Web Component and Angular's Directives look like they serve very similar purposes. Are there any significant differences?
John Tseng
  • 6,262
  • 2
  • 27
  • 35