1
vote
1answer
48 views

Math functions in AngularDart

Is there a way to access Math functions such as "random", "floor", etc. in AngularDart? I know this can be done in AngularJS but I'm new to AngularDart and can't figure out what I'm missing (maybe an ...
1
vote
2answers
108 views

Evaluating moustache expressions after the page was initialized (dynamic binding)

I have a HTML-Document containing moustache expressions that angular-dart evaluates very well: </head> <body ng-cloak> <ctrlTextElements> <div id="stage">outside: ...
1
vote
1answer
98 views

AngularDart and AngularJS interoperability

After having used AngularJS for some time I now found the Dart language and AngularDart which both look promising. However, my main concern is that AngularJS has a lot of awesome modules and I haven't ...
0
votes
0answers
126 views

How apply animation transition on ng-view

I'm trying to apply an transition in ng-view with angular dart. HTML: <ng-view class="main-animation"></ng-view> CSS: .main-animation.ng-enter { -webkit-transition: all 3000ms; ...
3
votes
2answers
361 views

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 ...
1
vote
1answer
66 views

How to resolve angular.dart routes?

How to resolve angular.dart routes? I want to do something similar to: angular.module('ngRouteExample', ['ngRoute']) .config(function($routeProvider, $locationProvider) { $routeProvider ...
6
votes
2answers
111 views

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() { ...
1
vote
2answers
67 views

Run a function when variables are loaded

I have an NgComponent that is supposed to load data from another file based on a parameter in the tag. Here is an example tag: <line-graph width="800" height="250" src="table.csv" /> If I ...
22
votes
3answers
4k views

When to favor ng-if vs. ng-show/ng-hide?

I understand that ng-show and ng-hide affect the class set on an element and that ng-if controls whether an element is rendered as part of the DOM. Are there guidelines on choosing ng-if over ...
0
votes
1answer
177 views

Error while running angular dart tutorial available on github

I am new to angular-dart. I have no prior knowledge of DART. Working on angular since last 3 months. I have downloaded the code from github. Then i opened the chapter 1 code through File->open in Dart ...
1
vote
1answer
99 views

Routing and constructors in Angular Dart

Not sure if this is a bug or not. When using a RouteProvider, the code within a controller constructor runs every time the route changes. So, in the following example, I call fetchData() to load the ...
3
votes
2answers
292 views

AngularDart Batarang alternative [closed]

Do you know any good Angular.dart alternative for Angular.js Batarang? Would be much easier to debug scopes, bindings.
4
votes
1answer
145 views

AngularDart directive expression grammar for mustache and other directives

What is the grammar of expressions that are permitted within AngularDart mustaches {{...}} and other directives?
2
votes
0answers
101 views

Guidance on Angular (Dart) web app route design possibly using Information Architecture (IA) or not

Is anyone aware of documentation describing route design for an Angular app? In particular any relationship / possible benefits of using a Information Architecture (IA) artifacts like site maps. ...
0
votes
1answer
95 views

AngularDart NgComponent is absent until browser resize

I'm building a project using AngularDart and bootstrap. My project includes an NgComponent that is being rendered in a shadow dom. On load there seems to be a 1 out of 5 chance the component will ...
1
vote
1answer
68 views

Using a boolean attribute in an Angular Dart Component

I have a component that I would like to use in this way: <my-component text='ctrl.text' editable></my-component> editable is boolean and following correct HTML semantics, does not need ...
3
votes
2answers
170 views

Populating derived fields in an Angular Dart component

I have a component that takes a single attribute. I want to populate a field in the component with a value that is derived from this attribute. I am running into the problem that the binding with the ...
2
votes
1answer
225 views

Assigning key and value to scope in constructor in Angular Dart component

Consider this dead-simple Angular Dart component: import 'package:angular/angular.dart'; @NgComponent( selector: 'el', templateUrl: './component.html', publishAs: 'ctrl', map: ...
2
votes
1answer
582 views

AngularDart components and model binding

Is it possible to bind an AngularDart ngComponent to a model and then manipulate that model from the component and see the changes outside of the changes outside of ngComponent. For example ...
2
votes
2answers
101 views

Surprising error message in Angular Dart relating to watchers

I'm writing a component that takes a String and converts it into a list of <span>s. Each <span> gets a String character and is assigned a random color. The component invocation looks like ...
3
votes
1answer
802 views

What is the difference between AngularJS and AngularDart [duplicate]

What's the difference between AngularJS and AngularDart? If someone is just getting started with Angular, which should they learn first?
2
votes
1answer
108 views

Validating the length of a form input value in Angular Dart

How can I specify that a form input only consider values of a minimum and maximum length as valid?
4
votes
2answers
397 views

Angular Dart and form validation

Angular JS has the $pristine, $dirty, $valid, and $invalid booleans for checking the state of a form. Are there equivalents for these in Angular Dart?
1
vote
2answers
125 views

Do publishAs values have to be unique in Angular Dart?

I suspect this is a bug, possibly even a manifestation of https://github.com/angular/angular.dart/issues/396. I want to register multiple controllers and want to use ctrl as the value of the ...
4
votes
1answer
189 views

Trouble when working with Radio button in Angular Dart

I can make radio buttons work and bind to a model. However, when the page loads, no radio button is shown as being selected, even though one is. Here is the Dart code: import ...
2
votes
2answers
169 views

Puzzled by CSS selector to trigger controller

I'm having trouble understanding how an attribute selector can be used to restrict the scope of a controller. Here's the minimal controller code: import 'package:angular/angular.dart'; ...
3
votes
3answers
535 views

Data binding to a Map in Angular Dart

I'm trying to implement functionality for checking multiple items in a list of checkboxes. I am using a Map to store the data and its selected/unselected state. List<String> fruits = [ ...
2
votes
3answers
132 views

Manual injection in Dart

How do you manually inject an instance in angular dart? This would be the equivalent to the following in angularjs: var myInjector = angular.injector(["ng"]); var $http = myInjector.get("$http");
1
vote
3answers
285 views

AngularDart on Firefox fails with “receiver.webkitCreateShadowRoot is undefined”

I have an AngularDart application that is working fine on Chromium and Chrome with Javascript. But in Firefox and IE, I get the following error: [14:36:14.648] "NullError: ...
3
votes
1answer
333 views

ng-repeat is only working to iterate over List and not Iterable or Set

It seems to be impossible to iterate over anything else than List with ng-repeat. For instance, strangely the following code does not work: <span ng-repeat="i in [1, 2, ...
4
votes
1answer
2k views

ng-repeat not working over collections that contains dupes

The following code is not working because the collection contains dupes: <div ng-repeat="value in [4, 4]"></div> I think that the following should work but is unfortunately not working: ...
2
votes
3answers
649 views

Styling Components in AngularDart

I was wondering what is the best way to style AngularDart components? I'd like to be able to split base styles in a separate css file and then just include it somehow (maybe @import if angular dart ...
4
votes
1answer
416 views

Angular.Dart How to dynamically add Component to DOM?

I have a custom @NgComponent in my project and it works if I place it within the static HTML of the application. What I'm trying to figure out is how to add one to the DOM dynamically? If I ...
34
votes
3answers
10k views

Differences between Angular.js and Angular.dart? [closed]

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 ...
1
vote
2answers
268 views

Errors with Angular.Dart tutorials

Installed Google Dart 1.0. Basically a Dart noob at this point... angular.dart tutorial apps at - https://github.com/angular/angular.dart.tutorial Seems broken or I am doing something wrong. in ...
4
votes
1answer
477 views

Analog of ngTransclude in Angular.Dart

I'm trying to figure out how to make a component render its children. So I can compile: <my-component> <div id="child"></div> </my-component> into something like this: ...
19
votes
5answers
4k views

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 ...