Like jQuery with its
$ function, Polymer also has a very handy way to locate nodes in the DOM of the page. This recipe shows you how to use it. You can find the code in the project
web\index.html, where a component with the name
find-nodesis imported through the following line:
From this, we know that the component is defined in
find_nodes.html, and the code behind it is in a file named
find_nodes.dart. For a discussion of the other tags, refer to the first recipe.
find-nodesis defined in
import'dart.html'; import'package:polymer/polymer.dart'; @CustomTag('find-nodes') classFindnodes extends PolymerElement ...