ui-router / quickstart-ng2

DEPRECATED -- See https://github.com/ui-router/quickstart-angular
https://github.com/ui-router/quickstart-angular
MIT License
64 stars 20 forks source link

Update path to bootstrap #1

Closed joe-watkins closed 8 years ago

joe-watkins commented 8 years ago

App was failing because of path to bootstrap. I managed to resolve this by adding ./ to System.import()

e.g.

System.import('./app/_bootstrap/bootstrap')
            .then(null, console.error.bind(console));
christopherthielen commented 8 years ago

Hi Joe, thanks for the PR!

I tried your patch and the browser still failed to load app/_bootstrap/bootstrap.js

I think the actual problem was not the path, but rather a race condition in npm start script. The source was not yet transpiled to ES5 when the browser tried to load the app.

I updated the instructions and added a pre-compile step in 0ea20db517e7550243bd249133c1dd728528da9c

joe-watkins commented 8 years ago

You nailed it! tnx :)