Menu
  • HOME
  • TAGS

Can I have two apps in one webpage in Dart + polymer?

dart,dart-polymer

If they are both polymer apps on the exact same version and all their packages are the exact same version then you might be ok, but I wouldn't suggest it. Instead, can you make a single package which has two entry points (one for each of your apps)? If you...

How convert Dart to JS?

javascript,dart

dart2js is usually not the straight-forward way to generated JS from Dart. Normally you just run pub build in your project directory. Ensure you have your pubspec.yaml configured properly csp: true (for Chrome apps Using Polymer in a Dart Chrome App, Chrome App CSP violation after Dart/Polymer transform/compile to JavaScript)

Dart import package:polymer/polymer.dart error

dart,dart-polymer,dart-pub

I'm pretty sure your pub-cache is corrupted. Try to run pub cache repair from the command line.

compiled dart code not running in IE 10 and IE 11

dart,internet-explorer-10,internet-explorer-11,dart2js

I guess the click handler registration is not supported on <option> in the browsers you mention. Alternatively you can register your callback on the SelectElement.onChange and retrieve the selected with something like : import 'dart:html'; void main() { SelectElement select = querySelector('select'); select.onChange.listen((_) { final opt = select.options[select.selectedIndex]; print(opt.value); });...

does exist a Dart plugin for Netbeans?

netbeans,dart,netbeans-8

Never heard of a Dart plugin for NetBeans but it seems there was an attempt - https://plus.google.com/+netbeans/posts/6pxRJwpZ3rJ - https://www.java.net/story/geertjan-wielenga-dart-and-netbeans-ide-74 - https://blogs.oracle.com/geertjan/entry/dart_and_netbeans_ide_7

postgresql open connection and execute more then one command

postgresql,dart,dart-async

You need to add a return here return _addTagToPost(conn, tag_values); and Future _addTagToPost(Connection conn, Map values) { print('trying to add tag to attached tags'); return conn.execute( "insert into atatched_tags values(currval('posts_post_id_seq'), @tag)", values) .catchError((err){ print('Execute error in addTagToPost: $err'); }); } to keep the async operations connected. Otherwise the connection is...

How to set callback when