Issue Since shadow_dom is officially deprecated and suffer from some painful bugs. i wonder if its safe to use web_components as suggested in the pub page. while dart-angular tutorial still use shadow_dom Solution You should definitely change to web_components shadow_dom
Continue readingTag: web-component
Tests in angular dart, scope is empty
Issue I’m trying test custom angular components. I want check the components class state. For this a have two options: Get the component in the scope Use web components xtag The problems: My scope is always empty – I debug
Continue readingSimple AngularDart component Failing
Issue I have this minimal code for an Angular Dart component, I’ve even written it in the same file, but I cant get it to work. import ‘package:angular/angular.dart’; import ‘package:angular/application_factory.dart’; void main() { applicationFactory().addModule(new TT()).run(); } class TT extends Module
Continue readingAngular2: Accessing child nodes from a template
Issue I have a component and I would like accessing some child nodes from the template. I achieved to access the details div, but I don’t know why the code works. What exactly does the Future class? And why the
Continue readingHow do I get a reference to an event stream from a within an event handler?
Issue I have a need to manage a global state of a number of web components on my web page. (e.g. Each web component has a “select” button/function and I track components to make sure only one component is selected
Continue readingAbsolute paths not allowed on Dart WebComponent
Issue My little Dart/Polymer sample works nice so far. (GitHub) Here is the yaml file I use: name: PolymerHelloWorld environment: sdk: any dependencies: browser: any polymer: any shadow_dom: any mdv: any transformers: – polymer: entry_points: – web/index.html – web/hello-world/hello-world.html –
Continue readingNested polymer template inheritance
Issue Is there any way to surround a polymer child template with its parent’s template? In the following example shadow tag bring the parent’s template into the child view, but it’s ignoring its content: Parent polymer element <polymer-element name=”my-window”> <template>
Continue readingIs it possible to create a customized <ul> with a different layout algorithm?
Issue I am trying to create a custom web component with the following characteristics: Can have multiple child <li> elements (like <ul> and <ol>) Has a custom layout algorithm of child <li> elements. To be precise, I would like to
Continue readingUsing Polymer.dart to manipulate the shadow DOM from inside a dynamically added custom element
Issue This minimal polymer app has a ‘browser’ that holds ‘tracks’. The browser needs to be able to call render on its tracks. When a track renders, it adds a new <p> node to its shadow DOM. As it stands,
Continue readingHow to access light DOM in Polymer.dart?
Issue I’m looking for a way to access light DOM inside a custom Polymer.dart element. my_element.html <link rel=”import” href=”../../../../packages/polymer/polymer.html”> <polymer-element name=”my-element”> <template> <content></content> </template> <script type=”application/dart” src=”my_element.dart”></script> </polymer-element> my_element.dart import ‘package:polymer/polymer.dart’; import ‘dart:html’; @CustomTag(‘my-element’) class MyElement extends PolymerElement { MyElement.created()
Continue reading