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
104
votes
1 answer

How to bind to data-* attribute in angular2?

Assuming I have really large grid of cells I want to add data-row and data-col atribute values and bind from model. How can I bind data-row from angular2 (beta0 in Dart). Binding with data-row="{{boundVal}}" does not seem to work. (no data attribute…
tomaszkubacki
  • 3,181
  • 3
  • 23
  • 36
76
votes
3 answers

Differences between Angular.js and Angular.dart?

I know a bit about Angular.js, but I want to teach myself Dart and Angular.dart now. I'm a bit curious what the differences between the two are, though. The Angular.dart tutorial specifically says it won't compare the two. Does anyone who has used…
CorayThan
  • 17,174
  • 28
  • 113
  • 161
73
votes
5 answers

Angular2 dynamic change CSS property

We are making an Angular2 application and we want to be able to somehow create a global CSS variable (and update the properties' values whenever changed when the variable is assigned). We had used Polymer for a while (now we are switching to…
tenhobi
  • 1,977
  • 3
  • 23
  • 49
34
votes
2 answers

How to do something before object destruction in Dart?

In Java we can do something like override finalize(), in C++ we can do something like ~Someclass(), But How can I do it in dart, I read the doc in https://www.dartlang.org/ but did not find answers.
Dongyu Jia
  • 417
  • 1
  • 4
  • 6
33
votes
11 answers

pub global activate command - $HOME/.pub-cache/bin not on path

I was trying to install dart2 recently, but when I try to install pub global activate stagehand, it comes with a warning. Warning: Pub installs executables into $HOME/.pub-cache/bin, which is not on your path. You can fix that by adding this to…
Kevin
  • 477
  • 1
  • 5
  • 13
25
votes
3 answers

Default stringify for objects, equivalent to Java's toString?

I have just take a look at the 3º tutorial from dart, creating the rating component. I was wondering if there is same method which is called when stringifying an object, something similar to Java's toString. For example: MyClass myObject = new…
Javier Mr
  • 2,130
  • 4
  • 31
  • 39
24
votes
9 answers

How to convert DateTime into different timezones?

How to convert DateTime into different timezones? The DateTime class has two methods .toLocal() and .toUtc(). But if I want to display time in another time zone. How can I do it?
Sergey
  • 425
  • 1
  • 4
  • 11
24
votes
5 answers

AngularJS style programming in Dart?

Does anybody know a library or project that allows for an AngularJS style of programming in Dart? I'd like to be able to create annotated HTML files for declaring my UI instead of imperatively instantiating everything like in SWT. Also, features…
vsp
  • 919
  • 7
  • 14
20
votes
1 answer

How to specify dependency_overrides in pubspec.yaml?

I am working with latest version of angular.dart and my pubspec.yaml looks somewhat like this: name: angularApp dependencies: angular: git: 'git@github.com:angular/angular.dart' third_party_angular_plugin: any the problem is…
adarshaj
  • 1,224
  • 1
  • 11
  • 24
19
votes
5 answers

How to add a component programmatically in Angular.Dart?

I would like to dynamically build a component tree basing on some information received from AJAX calls. How to programmatically add a component to the DOM from inside of other component? I have and I would like, basing on some logic,…
18
votes
5 answers

I am getting the following error on running flutter create my_appName: "my_appName" is not a valid Dart package name

I have tried upgrading flutter to the latest version. I am still getting the same error.
16
votes
2 answers

Why does Angular not need a dash in component name

I wondered why Polymer elements need a dash in custom elements name like while this is not necessary for Angular components especially as Angular components also use ShadowDOM. ** Edit** It doesn't even seem to be suggested good…
Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
14
votes
1 answer

How do i support RouteParams on page reload using Angular 2 Dart?

I'm using the Router and RouteParams in Angular 2 Dart. My routes are as follow: @RouteConfig(const [ const Route(path: '/', component: ViewLanding, as: 'home'), const Route(path: '/landing', component: ViewLanding, as: 'landing'), const…
Jack Murphy
  • 2,952
  • 1
  • 30
  • 49
14
votes
2 answers

Does Dart have a widget library?

Looking into Dart a year later and I don't see any comprehensive widget library. I saw KevMoo's Widget.Dart project on GitHub but none of the widgets actually seem to work. I currently use AngularJS for my projects and have a great set of libraries…
enantiomer2000
  • 349
  • 1
  • 4
  • 13
14
votes
3 answers

ng-repeat not working over collections that contains dupes

The following code is not working because the collection contains dupes:
I think that the following should work but is unfortunately not working:
Is…
odwl
  • 2,095
  • 2
  • 17
  • 15
1
2 3
86 87