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

Why is map not working but foreach is?

This forEach works just fine var newMarkers = new List(); providers.forEach((p) { var marker = markerFrom(p); newMarkers.add(marker); print("got one"); }); _markers = newMarkers; but this map doesn't ever get called when placed in…
Erik
  • 1,246
  • 13
  • 31
11
votes
2 answers

Can AngularDart route directly to a component?

I'm using AngularDart and routing. My views are one-liners that contain a single component. I feel the views are not carrying their weight. Can I route directly to a component? Example: router.root ..addRoute( name: 'welcome', path:…
Seth Ladd
  • 112,095
  • 66
  • 196
  • 279
11
votes
2 answers

Difference between Angular Dart and Polymer Dart

Angular gives you the possibility of dynamic two-way-data-binding. But it allows you also to create custom elements and directives. So, if I use Angular in Dart, there is no need for Polymer any more, is it right?
Liglo App
  • 3,719
  • 4
  • 30
  • 54
10
votes
1 answer

Angular and Angular Dart - which framework is recommended for the web development?

I am little bit confused about the difference between the latest Angular version and Angular Dart. Looks like both have same syntax and implementation style. So what is the intention behind the google for a new framework? I think it makes too…
Jameel Moideen
  • 7,542
  • 12
  • 51
  • 79
10
votes
1 answer

Load JSON date to Dart DateTime

I have a Rails server that is delivering a MySQL date. My class is set up based upon the AngularDart tutorial. It doesn't seem to load correctly. My artist_service. dart method: Future> getArtistsRecords(int id) async { String url…
curt
  • 4,422
  • 3
  • 42
  • 61
10
votes
3 answers

angular.dart NgTwoWay and NgAttr deprecated?

I have just started using Angular dart and Im going through the online tutorial with examples, and DartEditor is currently striking out NgAttr and NgTwoWay saying they are deprecated, is this the case? and if so what are they being replaced with?…
Daniel Robinson
  • 13,806
  • 18
  • 64
  • 112
10
votes
2 answers

Access outer $index when ng-repeat are nested in AngularDart

Consider the following nested ng-repeat directives:

c index is {{$index}}, r index is {{???}}

How can I access the $index of the outer ng-repeat…
Patrice Chalin
  • 15,440
  • 7
  • 33
  • 44
9
votes
6 answers

Dart analyzer is not parsing the dynamic generated files

I checked and the file is OK. Dart 1.23.0 AngularDart 3.1.0 The error I am getting is: Target of URI hasn't been generated: 'file.g.dart'
Jonathan
  • 4,724
  • 7
  • 45
  • 65
9
votes
2 answers

How to use custom/external fonts icon in Chrome Packaged Apps

I have Chrome Packaged App written in AngularDart and trying to get some external icons to make the app look nicer, but couldn't find any example over the net. Tried many things along with the below workaround but couldn't get it working. I am…
UCJava
  • 307
  • 4
  • 19
9
votes
1 answer

Why is Controller deprecated in AngularDart 0.10.0?

I just upgraded to AngularDart 0.10, renamed my Ngcontrollers to Controller and I am very surprised to see that Controller is marked as deprecated by dart-editor. I have seen that Controller is supposed to disappear in AngularDart 1.0 [1] but why is…
Vincent
  • 430
  • 3
  • 13
8
votes
5 answers

How to apply CSS classes to another component in AngularDart?

Let's say there is a simple framework to display popups: @Component( selector: 'popup-host', template: ''' ''', styles: ['.popup-container {…
Sergiy Belozorov
  • 5,856
  • 7
  • 40
  • 73
8
votes
1 answer

dart json.encode(data) can not accept other language

I am currently doing web development with dart. Implemented service with mockclient. However, the following error occurs. The implementation code below is an in memory web api service that inherits mockClient. The code that calls client.send () and…
superpeace
  • 85
  • 1
  • 3
8
votes
1 answer

Now that Controller is deprecated, what do I use instead?

I have two top level controllers, and now that Controller is deprecated, I'm wondering how to convert them to whatever it is they need to be.
w.brian
  • 16,296
  • 14
  • 69
  • 118
8
votes
1 answer

Keep browser URL in sync with application status

This question is related to this question Routing: get notified about parameter updates without reloading the view I have a view with a grid-view (generated using ng-repeat). The routing parameter recId specifies which row is made current…
Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
8
votes
4 answers

Verifying route preconditions prior to loading controller

I'm writing a single page application in Angular, specifically angular.dart, but I'm assuming this question still applies to AngularJS. Take for example the following routes: /login - Expects nobody to be logged in. If someone is authenticated…
w.brian
  • 16,296
  • 14
  • 69
  • 118
1
2
3
86 87