method import


Future import(List urls)

Loads an HTMLImport for each url specified in the urls array. Notifies when all the imports have loaded by calling the callback function argument. This method can be used to lazily load imports. For example, For example,

Polymer.import(['my-import1.html', 'my-import2.html'])
    .then((_) => print('imports lazily loaded'));

Dart Note: This has very limited support in dart, http://dartbug.com/17873

Source

// Dart Note: From src/lib/import.js. For now proxy to the JS methods,
// because we want to share the loader with polymer.js for interop purposes.
static Future import(List urls) {
  print(_DYNAMIC_IMPORT_WARNING);
  return PolymerJs.import(urls);
}