Hi Eric,

Many thanks. This worked and I was able to use http to consume a rest 
service.


On Tuesday, August 25, 2015 at 8:15:01 PM UTC+3, Eric Martinez wrote:
>
> Hey Tahir,
>
> I've been playing with that project and I found a workaround.
>
> First of all, the error you  see is not a blocking one, in others words 
> your project will keep working even with that error (so you can even ignore 
> it). I think it is related to the property *experimentalDecorators*, but 
> I'm not 100% sure. If you comment that line, you'll get another less 
> annoying error 
>
> error TS6064: Option 'experimentalDecorators' must also be specified when 
> option 'emitDecoratorMetadata' is specified.
>
> It's less annoying that the ones you are seeing. I've this same error 
> everytime I run the typescript compiler, and it is non-blocking too, so you 
> can ignore it.
>
> With all the changes I made to the project, it looks like this
>
>
>     lib: [
>         
> 'node_modules/angular2/node_modules/traceur/bin/traceur-runtime.js',
>         'node_modules/angular2/bundles/angular2.dev.js',
>         'node_modules/angular2/bundles/http.dev.js',
>         'node_modules/systemjs/dist/system-csp-production.js'
>     ],
>     ng2Typing:
> 'node_modules/angular2/bundles/typings/angular2/angular2.d.ts',
>     ng2HttpTyping : 
> 'node_modules/angular2/bundles/typings/angular2/http.d.ts'
>
> // ....
>
>     var tsResult = gulp.src([PATHS.src.js, PATHS.ng2Typing, 
> PATHS.ng2HttpTyping])
>         .pipe(typescript({
>             noImplicitAny: true,
>             module: 'system',
>             target: 'ES5',
>             emitDecoratorMetadata: true
>             // experimentalDecorators: true
>         }));
>
> And with this few changes you can have a not-so-annoying error. Besides 
> all this, you have to include the http.dev.js file to your html file.
>
> I hope it helps you a little bit :)
>

-- 
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