A client-side web framework for Dart
4
votes
0answers
183 views
Creating an angular dart component dynamically
I'm trying to create an angular dart component dynamically. I know it's not a best practice but I have to because of how my angular widgets are being inserted.
I based my work off of:
How to add a ...
4
votes
0answers
141 views
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 ...
3
votes
0answers
193 views
In AngularDart, how should I reference my templates in templateUrl so they work for both Dartium and dart2js?
I currently have this directory layout:
project
web
app.html
main.dart
templates
app.html
alerts.html
menu.html
components
...
3
votes
0answers
134 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 ...
3
votes
0answers
93 views
Angular dart click event on <a> href that is wrapped in shadow dom is retargeted to wrapper
In Angular dart tutorial Chapter_06, the default router is based on hash. After change it to Html 5 push state, the route on edit button which is inside of view_recipe_component does not work.
After ...
2
votes
0answers
125 views
How can I replace an element in AngularDart >= 1.0
Answer seems easy - but it isn't, at least not for me.
Here is a complete sample on GitHub: https://github.com/MikeMitterer/Angular.Accordion
Transpiled to JS: (working sample) ...
2
votes
0answers
60 views
“No getter for 'focusAction'.” exception in Dart
I'm trying to bind a Polymer paper input element to an Angular variable but I get this exception:
No getter for 'focusAction'.
STACKTRACE:
#0 StaticClosureMap.lookupGetter ...
2
votes
0answers
76 views
Access scope created in ng-if
I want to access form's ngModels from controller.
HTML looks like this:
<div ng-if="ctrl.showForm">
<form name="myForm">
<input name="model">
...
2
votes
0answers
56 views
What to do when browser stays in waiting state
I am thying to write a simple dart Angular application.
I frequently find that when I try and test the app using dartium
the raw static page is displayed
the console display
[web] GET ...
2
votes
0answers
147 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 : ...
2
votes
0answers
68 views
Can't get HttpInterceptors to work
I'm probably missing something dumb but I cannot get the HttpInterceptor to work. Based on a couple of examples (x x x) and the API reference I wrote this code that doesn't seem to do anything when a ...
2
votes
0answers
93 views
AngularDart Element onResize event not linked to window
I'm working on a responsive, full-width layout and I need to do some element processing when the size changes. This has to not be linked to the window, as the size can change without the window size ...
2
votes
0answers
102 views
how to pass named optional parameter defined in dart method to ng-click attribute
I have a method in dart, let's call it showSomething(), which has "named optional parameters"
// the following method is in a model called ctrl.
void showSomething(bool _bool, {var ...
1
vote
0answers
28 views
Animating Ng-view
I have been trying for too long to try and get transitions animated as I can in angular.js, with no success.
ng-view works, I can move between views with no issue and the url updates correctly, but ...
1
vote
0answers
44 views
CSS Only Working on First Angular Selector
I'm trying to apply css to my Angular selector. It works on the first one, but not the next two. They're all the same selector.
citation.dart
library citation_component;
import ...
1
vote
0answers
18 views
Dynamically remove angular.dart component?
Similar to this question of AngularJS - Angular - How can I remove from the DOM an element I have used $compile on?
How to remove a dynamically inserted angular.dart component from dom (esp. how to ...
1
vote
0answers
32 views
AngularDart class has no instance getter 'isLoggedIn'
I've got the following code in my AngularDart application:
DuseClient get client {
var _client = new DuseClient(
Uri.parse("https://duse.herokuapp.com/v1"),
new ClientClientFactory());
if ...
1
vote
0answers
59 views
What's causing this exception from AngularDart?
My Angular Dart (1.0/1.1) web project is throwing the following exception, but because it's thrown from within the framework and not from my own code, I don't know what's causing it.
The null object ...
1
vote
0answers
133 views
Angular.Dart and the Root Controller/Component
I have an Angular.Dart program and want to add some Angular functionality to the main program (outside of any components). I've been reading about how to accomplish this, and it seems that you have to ...
1
vote
0answers
125 views
Mobile web apps with Angular.dart
I have a web application built with AngularDart. Now I want to transform it to a mobile web application with Cordova (so it will be available for Android and iPhone).
I've cloned official angularDart ...
1
vote
0answers
76 views
How do I filter a ng-repeat by a boolean attribute in Angular.Dart?
Each space is an object with a boolean attribute called open, and I'm putting them into two lists. In this case, I have two of them, one is true and one is false. When the list renders at all, both ...
1
vote
0answers
36 views
Replacing an item in List causes NotFoundError in AngularDart
"replace" is called if I click on <a class="replace" href="#" ng-click="replace(musician.lastname)">[ REPL ]</a>
void replace(final String lastname) {
_zone.run(() {
final ...
1
vote
0answers
28 views
angular component test for events
I have a custom component and try to test for the emitted events
My component looks like this:
@Component(
selector: "my-component",
templateUrl: 'component/my-component.html',
useShadowDom: ...
1
vote
0answers
45 views
Controller child with a different scope
I have a Dart Angular controller with a child. The child is a Dart Angular component.
How can I make the child to get a new scope from the parent (a child-scope)?
1
vote
0answers
65 views
How to compile string html template?
I'm trying to compile a string html template that's dynamically generated and then insert that compiled output with correct bindings to my page.
I haven't been able to find the correct way to do this ...
1
vote
0answers
36 views
web_components in dartium
I had some trouble to display my project in FF cause of shadow_dom. I read that the shadow_dom package is deprecated so I followed the steps in http://pub.dartlang.org/packages/web_components and ...
1
vote
0answers
16 views
onCatchError does not come if instantiated via HTML (in combination with bind toValue)
I'm a bit confused about how AngularDart / DI instantiates new objects.
If I instantiate 'appcontroller' via HTML it never gets the catchError (it fails in the console with 'Uncaught Error...'). The ...
1
vote
0answers
169 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 ...
1
vote
0answers
44 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
0answers
49 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
43 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 ...
1
vote
0answers
90 views
AngularDart - ngView, failed assertion route.isActive is not true
I have an error in my console each time when route has changed:
'package:angular/routing/ng_view.dart': Failed assertion: line 102 pos 12: 'route.isActive' is not true.
STACKTRACE:
#0 ...
1
vote
0answers
59 views
How to ensure that all the non-origin href links open in a new tab?
I have a html content stored in backend, which may have certain anchor tags with href links, when rendering them I build a custom NodeValidator and then bind the value using a angular.dart decorator. ...
1
vote
0answers
70 views
Chrome extension template with AngularDart
Is there any boilerplate/template chrome extension built with AngularDart?
1
vote
0answers
117 views
Is is possible to define a custom mapping deriving from NgAttr in AngularDart?
I'd like to define a new mapping annotation. For instance, wouldn't it be nice if @NgAttr added the mustache (the braces {{ and }}) automatically if the attribute looks like a controller value? So ...
1
vote
0answers
43 views
How to create a wrapper component / directive?
I have some markup I would like to cover with a simple wrapper. In this case, the idea is to wrap two <input> elements within some markup, so that this markup:
<div class="group-class">
...
1
vote
0answers
359 views
AngularDart Component Shadow Dom CSS Encapsulation only working in Dartium
I have been playing around with Angular Dart. I like it a lot, but I have come across an issue regarding components and Shadow Dom CSS encapsulation.
As far as I know, styles defined inside the ...
1
vote
0answers
224 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;
...
1
vote
0answers
42 views
ng-view contents reevaluated for the same route
I have the following problem: the application has a static top panel which contains a horizontal main menu. The central area contains ng-view which changes accordingly to the selection of the main ...
1
vote
0answers
65 views
How to force a view to be reevaluated when the same menu link is clicked twice in a row
In the context of a single-page Angular.dart application, I have a menu choice implemented as the following link:
<a href="#/users/list">List users</a>
The routing is implemented as:
...
1
vote
0answers
42 views
Is there a bug in controller attribute binding
I have a parent controller and a child controller and both have publishAs: ctrl (the same name). If I try to use a parameter from the parent-ctrl to give a value to a child-ctrl's attribute, the ...
1
vote
0answers
92 views
Create a custom validator for number field
I need a validator for a form field <input type='number> to limit the range.
I tried to build one similar to the existing (like NgModelMaxLengthValidator) but it extends the private class ...
0
votes
0answers
30 views
How do I setup routing to switch between modules or module configs?
I have an app written in AngularDart that has two kinds of modes. Everything is separated into modules and the app is assembled from them. Both modes are very similar, but one of them has an extra ...
0
votes
0answers
21 views
Issue with css shiming
I'm applying a css style to an element inside a component from within the stylesheet of another component using the ::shadow selector. The style .org box-label.org-label::shadow span is in the ...
0
votes
0answers
34 views
Decorate on the fly/programmatically an svg element with angular dart
I am plotting data by manipulating SVG nodes directly in dart. Works like a charm.
Now, I'd like to display a tool-tip for each svg-circle I draw.
I wanted to use the angular-dart @Decorator (much ...
0
votes
0answers
69 views
Simple sub-field bind with AngularDart
I am trying to bind a sub-field of a component to a input string. Here is a simplified version of the code.
my_component.dart
class A {
String text;
}
@ng.Component(
selector: ...
0
votes
0answers
55 views
How to get/set the model object from component in AngularDart?
Say you have this component
@Component (...)
class A {
//whatever
}
And the html it just look like
A.html
<div>
//whatever
</div>
index.html
<A></A>
...
0
votes
0answers
41 views
angular dart >> Best way to create a table:column renderer
I'm hopping this awesome community can steer me on the right direction. I came from the flash/flex/js world, and I like how simple it is to define an item renderer in flex. Here is what I'm trying to ...
0
votes
0answers
45 views
Angular Dart Select not shown the value saved
I have a list of objects in a select
form.html
<select ng-model="location.city"class="cities form-control" >
<option value="" disabled selected>Select City</option>
...
0
votes
0answers
38 views
Dart: cannot resolve class 'Enum' from 'CommentType'
While I was trying to get Angular & Polymer Dart working with paper elements I suddenly received the following error when I did a pub serve.
--- 5:00:08 PM Starting pub serve : ...