Hi,

I have moved to alpha37 but now have problems importing my component js 
from the local relative location.  My html looks like:

<!DOCTYPE html>
<html>
  <head>
    <script 
src="https://github.jspm.io/jmcriffey/[email protected]/traceur-runtime.js";></script>
    <script src="https://jspm.io/[email protected]";></script>
    <script 
src="https://code.angularjs.org/2.0.0-alpha.37/http.js";></script>
    <script 
src="https://code.angularjs.org/2.0.0-alpha.37/angular2.dev.js";></script>
  </head>
  <body>
    <sheet></sheet>
    <script>
      System.import('app');
    </script>
  </body>
</html>

and the error is:

GET https://registry.jspm.io/app.js 404 (Not Found)

I have tried setting the baseURL in System.config but the error persists.

Regards,

Martin


On Friday, September 11, 2015 at 1:40:44 PM UTC+1, Eric Martinez wrote:
>
> Martin,
>
> well, hard to say.
>
> What I recommend you to do :
>
> - Move to alpha37 released yesterday (
> https://code.angularjs.org/2.0.0-alpha.37/)
>
> - Include in your HTML the file http.dev.js
>
> - In bootstrap (imported now from 'angular2/bootstrap') add 
> 'HTTP_BINDINGS' (imported from 'angular2/http')
> Note : Http must be imported from 'angular2/http' too
>
> - Then, if you are using typescript 1.5.3 you should use @Inject in the 
> constructor
>
> constructor(@Inject(Http) http: Http)
>
> If you are using typescript 1.6.0-beta you can inject it without the 
> @Inject.
>
> Regards
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to