1.0.2 • Published 7 years ago

koa-angular-proxy v1.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

README.md:

async/await function(required babel)

use for koa2:

app.js:
    const angularProxy=require('koa-angular-proxy');
    app.use(angularProxy('./dist'))

'./dist' is your directory of angular2 project that the entry file is index.html.

And suche use:

app.js:             
    app.use(mount('/router',angularProxy('./dist')));
    
./dist/index.html:  
    <base href='/router/'>

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago