How to use the angular2-universal-preview.selectorResolver function in angular2-universal-preview

To help you get started, we’ve selected a few angular2-universal-preview examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github angular / universal / modules / gulp-prerender / index.js View on Github external
.then(function(serializedApp) {
      var html = str.replace(
        // 
        universal.selectorRegExpFactory(universal.selectorResolver(config.App)),
        // {{ serializedCmp }}
        serializedApp
      );

      file.contents = new Buffer(html);

      cb(null, file)
    });
  });