dart - Acces Polymer inner element programmatically -
I am attaching my app to a polymer element and I want to use another polymer element inside it. I am trying to use $ [] to call all the method of internal element in the inside polymer element inside it:
ImageEditor Iime; DivElement div2; ImageTool.created (): Super. Created () {div2 = $ ["seconddive"]; I am just in HTML: & lt; iME = $ ["imageEditor1"]}
Mode-letter name = "da-imagination" & gt; & Lt; Templates & gt; & Lt; Div class = "images" id = "mainDiv" & gt; & Lt; Da-imageeditor id = "imageEditor1" name = "ied" & gt; & Lt; / Da-imageeditor & gt;
Finally, with the script SRC, I get an exception when I give the image to Image Editor 1 for some reason.
Exception: Type 'HtmlElement' type 'ImageEditor' is not a subtype of the value '.
It looks like the browser has & lt; Da-
Element
Element
Be sure that you
@CustomTag
encoding on the ImageEditor
class declaration.