A client-side web framework for Dart
3
votes
0answers
14 views
Paper-tabs selection bar randomly visible when individual paper-tab data binded via Angular.dart?
The paper-tab somehow wrongly calculates the width of selection bar to be 0px, possibly due to the data being bound at a later point because of Angular.dart bindings. Is there an event which we can ...
2
votes
2answers
38 views
AngularDart Route
Can anyone tell me whats wrong in my coede:
import 'package:angular/angular.dart';
import 'package:angular/application_factory.dart';
import 'package:angular/routing/module.dart';
class myApp ...
1
vote
2answers
18 views
AngularDart: How to use two ng-repeat expressions with one tag?
I need to create a grouped table, similar to:
Customer Site
------------------------------
Customer 1 Site 1.1
Site 1.2
...
1
vote
1answer
57 views
Upgraded to AngularDart 0.13.0 and getting errors about routing and di
I upgraded to AngularDart 0.13.0 and I am receiving the errors below. What is the correct way to initialize the RoutingModule with the new di package 2.0.1?
In main.dart I have:
class RoutingModule ...
0
votes
1answer
21 views
How to add a html with angular-dart component using Decorator
I have my custom decorator like from the tutorial which adds HTML code to a page.
But if HTML code contains my custom component it will not be processed by AngularDart.
How can I add a processed ...
1
vote
0answers
15 views
Is there something like jsfiddle.net for Angular Dart?
Does anybody know an online service like jsfiddle.net, but for Angular Dart Code?
2
votes
1answer
21 views
Can I assign a Future to a controller's attribute in AngularDart?
I need to get a list of values asynchronously from the server. The API's method returns a Future.
Of course I can create a callback and assign the result manually, I wonder if there's a way to ...
0
votes
0answers
44 views
Dart vs AngularDart programming [closed]
I am planning to build a chrome app and have looked at Dart and AngularDart programming. I feel that AngularDart certainly feels better compared to Dart. But i see that AngularDart is still, yet to ...
3
votes
1answer
79 views
How to pass event object from paper-button click to angular.dart's function?
I have am using paper-button for click event and trying to add on-click="angularComponent.function" where angularComponent.function is a function in a angular.dart's component within which this paper ...
1
vote
2answers
56 views
Handling multiple modules in angular dart
I'm creating a website for a company which has 3 different firms. The domain hence will have 3 sub-domains like this:
www.example.com
firm1.example.com <-> www.example.com/firm1
...
2
votes
1answer
41 views
Angulardart sub components
Lets say I have 2 components, cmp1 and cmp2.
cmp1 will loop through a list and create cmp2´s for every item. in cmp2 I want to display the person data.
//component 1
@Component(selector: 'cmp1', ...
1
vote
0answers
52 views
How can I show a bootstrap modal in dart?
I need to avoid using the data-toggle attribute to open the use component. Instead of it I use ng-click="ctrl.openModal".
How can I use the modal to show / hide with Dart? I want to know how to use it ...
2
votes
1answer
65 views
How to select polymer dart custom elements in a angular dart view
So, I'm trying to select a polymer custom element(using paper_elements) in my view with querySelector. I'm able to select regular html elements just fine. In particular, I'm trying to select a ...
3
votes
0answers
36 views
using google maps in an AngularDart View [duplicate]
So, I've noticed an issue with Angular Dart views where they don't want to place nice when you want to interoperate with javascript. I noticed the issue when I was working with the facebook SDK. ...
1
vote
1answer
30 views
AngularDart: file input model directive
I'm trying to make a directive similar to ng-model to work with file inputs. I am new to AngularDart so don't really know how to go about doing this.
Here is some code I managed to write by looking ...
3
votes
2answers
104 views
Debuging Angular and Polymer dart
I asked a question earlier about getting a version of angular and polymer that would play nice with each other. Now I'm having some trouble running it in both dartium and chrome. My code is the same ...
0
votes
2answers
376 views
material Design with Angular Dart and Polymer dart. Compilation issues
I am at my whits end here. I've been trying over the last 48 hours to get these technologies to work.I've read everywhere that they should be able to work but it's just one problem after the other. ...
1
vote
1answer
25 views
in AngularDart how to register a PreEnter event to a route which needs to use a service method?
After all the deprecation in AngularDart , now configuring routes via the below initRoutes method inside my modules constructor.
//inside the main of the appliction
..
this.bind(RouteInitializerFn, ...
1
vote
1answer
63 views
Angular Dart: Data binding doesn't work when manipulating the controller from the outside, part two
A short background:
This example is a slightly more complicated version of my Angular Dart: Data binding doesn't work when manipulating the controller from the outside question that has been answered ...
1
vote
0answers
32 views
With AngularDart how can I create something approximating a directive (w/ v0.12.0)
Hello I've been doing angularjs dev for a while and thought I'd take a look at angulardart. I am trying to determine if a component must specify a template. My problem seems to stem from the fact that ...
1
vote
1answer
120 views
How do I get (reasonably recent versions of) Angular.dart and Polymer.dart to live together?
I, like many others, am trying to get Angular.dart to work w/ Polymer.dart. I'm also using Polymer's core-elements, which is the main reason I'd like to stick w/ Polymer. I've got Polymer + ...
1
vote
1answer
59 views
Asynchronous module definition (AMD) with Angular.dart?
I am curious to know if its possible to have Asynchronous module definition with Angular.dart (or dart in general), if yes, then please share a sample code for such a single page application.
0
votes
1answer
66 views
Wait for dom ready without useShadowDom
I want to wait until my component is fully loaded. The current approach would be to implement the ShadowRootAware interface. However this does not work, if the component disables the use of shadow ...
1
vote
1answer
64 views
AngularDart Text Area Safe HTML String editor
On my AngularDart application I have an small / simple text with size limitation (160 chars)
I can display html string and the remaining chars with :
<textarea class="form-control" ...
0
votes
1answer
38 views
Do something after attribute value got assigned
I would like to do some mapping after the members have been set by angular dart:
@Component(
selector: 'travel-step',
templateUrl: ...
0
votes
1answer
30 views
Scoping not working within ng-repeat
I have a strange behaviour / bug within a ng-repeat in AngularDart:
If I use the following code I get no errors:
<div class="row col-xs-12" ng-repeat="step in tp2.plan.steps">
{{ ...
0
votes
1answer
26 views
Bind input model to typed fields
I have a form with several input fields and radio buttons. Instead of binding these objects to String typed fields and then remap it to my model class, it would like to do this directly.
<input ...
0
votes
2answers
60 views
How to access a AngularDart components attribute (NgOneWay) outside of the component, eg. on the page it is in?
Here is a AngularDart component in a page.
<body>
<testcomponent></testcomponent>
<p>Should have value {{testcomponent.test}}</p>
</body>
The component has a ...
1
vote
1answer
124 views
How to know when the component is loaded?
When creating a AngularDart component, I can use ShadowRootAware and override onShadowRoot to be sure that the shadow dom is loaded and ready for manipulation, as described by the docs;
It is ...
1
vote
1answer
56 views
Angular Dart: Data binding doesn't work when manipulating the controller from the outside
I have two controllers nested into each other. The outer controller shows/hides the inner controller by using an ng-switch directive.
The outer controller also contains a checkbox. If this ...
3
votes
1answer
56 views
Angular Dart - Send data to controller using router.go
I want to send parameters to my Controller using the router.go redirection.
I tried this :
this._router.go('game', {'data': 'myData'});
Is it possible to get the parameters like that :
...
0
votes
1answer
76 views
how to avoid dart2js discarding my angulardart callback
I have a function that I think is being discarded by dart2js because it's only used in a AngularDart NgCallback, like this:
<my-component myCallback="myController.onLineupPositionClick()">
...
0
votes
1answer
71 views
Deploying Angular Dart component with canvas via shadowRoot: what is missing?
I have an angular dart application with a component using canvas via a shadowroot. This runs fine with Dartium, "run as javascript" and pub serve. However when I run pub build and launch the html file ...
1
vote
0answers
26 views
Can you combine angular dart templates into one file on build
Is there an Angular Dart solution similar to https://github.com/ericclemmons/grunt-angular-templates ?
1
vote
0answers
35 views
Is there a way to modify URL without triggering a view replacement?
I have a view that handle several URLs. Depending on the Url, different tabs are displayed inside the view. For instance /view/tab-1 should show the view with tab 1 and /view/tab-2 should show the ...
0
votes
2answers
71 views
Incompatible version constraints on polymer, with AngularDart
I have a Dart project with polymer going and the simple Polymer element fancy_button. I want to add AngularDart so I do so by adding the package to my pubspec.yaml so it looks like so:
name: ...
2
votes
0answers
86 views
Replacement of Controller in AngularDart
As Controller is deprecated, is there good replacement for it?
I understand, why it was deprecated, but now need to find a replacement for it.
Assuming that I need to publish some functions to HTML ...
0
votes
0answers
33 views
Router to catch all paths and redirect if a user has not logged in with username and password in AngularDart
In my AngularDart application I need to require the user to login and if they have not logged in then any route they visit should go back to the login page. I'm not sure how to approach doing this, is ...
1
vote
1answer
42 views
Angular Dart custom injection failing in dart2js
I have a podo class CarStorage for angular to inject.
class CarStorage {
int _carIdCounter = 0;
...
I wire it in using type:
module
..type(CarForm)
..type(CarItemsList)
...
3
votes
1answer
55 views
Binding new types in a component so that child components can inject them
Say I have many instances of a component, and it consists of child components, or maybe even a hierarchy of components beneath it. The top-level component may have data that the child components are ...
4
votes
0answers
95 views
Is there a wysiwyg editor for angular dart yet?
I am looking for a WYSIWYG editor that I can hook into my angular dart applications, but I had no luck yet.
I tried to create a binding myself for tinyMCE, but it was only one way and of course for a ...
2
votes
1answer
61 views
Using Less with AngularDart components and Bootstrap
I have started to migrate an AngularJS app to AngularDart, using Vic Savkin's sample app as a skeleton.
My existing project uses Less CSS. I am unclear about how to include that in my project.
...
0
votes
2answers
42 views
Which files needs to be deployed from a Dart project?
I have an AngularJS project that I am thinking of migrating to Dart. I do not want to migrate the whole project in a big-bang, so I am looking for ways to run the two apps side-by-side.
The dart app ...
0
votes
1answer
24 views
Dart unittest produces unhelpful output
I am working through the AngularDart tutorial and trying to write unit tests as I complete the exercises.
I have a test that looks like this:
test('should convert sugar ingredient to maple ...
0
votes
1answer
99 views
Does Angular Dart support ng-repeat-start and ng-repeat-end?
AngularJS supports a ng-repeat-start and ng-repeat-end directive to have the ng-repeat repeat with several elements that are siblings. Is there a similar feature in Angular Dart or a different method ...
0
votes
0answers
45 views
Component error Next record is NOOP[null]{613845604} expecting MARKER[null]{934997505} when update to AngularDart 0.12.0
I am update my project from AngularDart 0.9.8 to 0.12.0 (0.9.10)
My working component on 0.9.8 has error on 0.12.0 (0.9.10)
Here is currency_autocomplete.html
<div class="input-group">
...
1
vote
0answers
63 views
How do I test an angular dart decorator?
I am trying to unit test an angular dart decorator but cannot pass the component compile phase.
I am trying to follow this example : ...
3
votes
1answer
54 views
Dart proxy requests to backend server during development
Is there an equivalent of grunt-connect-proxy for Dart / pub ?
In production the frontend stuff is being built (pub build) as static resources and can be served by a dart-agnostic server.
During ...
1
vote
1answer
50 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
75 views
If two different components are in the same view (ngRoute), how can they share a common object or communicate?
In AngularDart I have a view.
https://angulardart.org/tutorial/08-ch06-view.html
'demo_table': ngRoute(
path: '/demo/table',
view: 'views/demotable.html'
),
On the view I have two components.
...