tree: 855fe81f596721ecc6d4113e2162e5b360195c3b [path history] [tgz]
  1. .npmignore
  2. LICENSE
  3. package.json
  4. README.md
  5. test.html
  6. text.js
  7. text.txt
node_modules/systemjs-plugin-text/README.md

text

SystemJS's text loading plugin. Text is loaded from the file into the variable as a string.

Installing

For SystemJS use, locate text.js in the application, and then locate it with map configuration:

System.config({
  map: {
    text: 'path/to/text.js'
  }
});

For installing with jspm, run jspm install text.

Basic Use

import myText from './mytext.html!text';