Skip to content

Commit

Permalink
add system.js config to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFrankel authored Sep 24, 2017
1 parent 860fad0 commit f215b9c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit f215b9c

Please sign in to comment.