From f215b9c0234e62f9a3f3cb930b9c273621867e0d Mon Sep 17 00:00:00 2001 From: Maor Frankel Date: Sun, 24 Sep 2017 14:11:46 +0300 Subject: [PATCH] add system.js config to readme --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/README.md b/README.md index 676f481..ebc29e6 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,41 @@ node and npm are required to run this package. ] }) ``` + +SystemJS +``` + System.config({ + paths: { + // paths serve as alias + 'npm:': 'libs/' + }, + // map tells the System loader where to look for things + map: { + ... , + 'ngx-popper': 'npm:ngx-popper', + 'popper.js': 'npm:ngx-popper', + 'popper.module': 'npm:ngx-popper', + }, + // packages tells the System loader how to load when no filename and/or no extension + packages: { + ... , + 'ngx-popper': { + main: 'index.js', + defaultExtension: 'js' + }, + 'popper.js': { + main: 'popper.js', + defaultExtension: 'js' + }, + 'popper.module': { + main: './popper.module.js', + defaultExtension: 'js' + } + } + }); + +``` + 3. Add to view: