Getting Started

Installing

You can get ngTemplate via npm.

  npm i --save ng-template

Accessing

TypeScript

  import { NgTemplate } from "ng-template";
  const template = new NgTemplate( node );

CommonJS

  var NgTemplate = require( "ng-template" ).NgTemplate,
      template = new NgTemplate( node );

In order to adapt your source for browser, you can either browserfy or load your modules with SystemJS

  System.config({
    paths: {
       "*": "node_modules/*"
    },
    packageConfigPaths: [ "./node_modules/*/package.json" ]
  });

VanillaJS

  <script src=""./node_modules/ng-template/dist/ngtemplate.glob.min.js"></script>
  <script>
  var template = new NgTemplate( node );
  </script>

results matching ""

    No results matching ""