function initPolymer


Future<Zone> initPolymer()

Initializes a polymer application as follows: * if running in development mode, set up a dirty-checking zone that polls

for observable changes

Source

Future<Zone> initPolymer() {
  _initializeLogging();
  if (_deployMode) {
    return startPolymer().then((_) => Zone.current);
  }
  return dirtyCheckZone()
      .run(() => startPolymer().then((_) => dirtyCheckZone()));
}