Coder Social home page Coder Social logo

angular2-codes's Introduction

angular2-codes's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular2-codes's Issues

Chapter 3.2.3 Adding the bootstrap

Hi, i added : <link rel="steelsheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css" > to index.html

When i watch the source code generated by the browser i can see the css file but bootstrap's classes are not applied.

Any idea ?

Thanks

the AngularPlayList example error

Hi, when I run the AngularPlayList example,get these errors

zone.js:461 Unhandled Promise rejection: Template parse errors:
Can't bind to 'ngModel' since it isn't a known property of 'input'. ("
required
placeholder="title"
[ERROR ->][(ngModel)]="video.title"
>

"): VideoDetailComponent@14:20
Can't bind to 'ngModel' since it isn't a known property of 'input'. ("
required
placeholder="url"
[ERROR ->][(ngModel)]="video.url"
>

"): VideoDetailComponent@23:20
Can't bind to 'ngModel' since it isn't a known property of 'textarea'. ("


<textarea class="form-control" rows="5" [ERROR ->][(ngModel)]="video.desc">

        </textarea>

"): VideoDetailComponent@27:52 ; Zone: ; Task: Promise.then ; Value: BaseException {message: "Template parse errors:↵Can't bind to 'ngModel' sin… </textarea>
↵"): VideoDetailComponent@27:52", stack: "Error: Template parse errors:↵Can't bind to 'ngMod….1:8080/node_modules/zone.js/dist/zone.js:356:38)"}message: "Template parse errors:↵Can't bind to 'ngModel' since it isn't a known property of 'input'. ("↵ required
↵ placeholder="title"
↵ [ERROR ->][(ngModel)]="video.title"
↵ >


↵"): VideoDetailComponent@14:20↵Can't bind to 'ngModel' since it isn't a known property of 'input'. ("↵ required
↵ placeholder="url"
↵ [ERROR ->][(ngModel)]="video.url"
↵ >

↵"): VideoDetailComponent@23:20↵Can't bind to 'ngModel' since it isn't a known property of 'textarea'. ("

↵ <textarea class="form-control" rows="5" [ERROR ->][(ngModel)]="video.desc">

↵ </textarea>
↵"): VideoDetailComponent@27:52"stack: "Error: Template parse errors:↵Can't bind to 'ngModel' since it isn't a known property of 'input'. ("↵ required
↵ placeholder="title"
↵ [ERROR ->][(ngModel)]="video.title"
↵ >

↵"): VideoDetailComponent@14:20↵Can't bind to 'ngModel' since it isn't a known property of 'input'. ("↵ required
↵ placeholder="url"
↵ [ERROR ->][(ngModel)]="video.url"
↵ >

↵"): VideoDetailComponent@23:20↵Can't bind to 'ngModel' since it isn't a known property of 'textarea'. ("

↵ <textarea class="form-control" rows="5" [ERROR ->][(ngModel)]="video.desc">

↵ </textarea>
↵"): VideoDetailComponent@27:52↵ at new BaseException (http://127.0.0.1:8080/node_modules/@angular/compiler/src/facade/exceptions.js:27:23)↵ at TemplateParser.parse (http://127.0.0.1:8080/node_modules/@angular/compiler/src/template_parser/template_parser.js:98:19)↵ at RuntimeCompiler.compileTemplate (http://127.0.0.1:8080/node_modules/@angular/compiler/src/runtime_compiler.js:246:51)↵ at eval (http://127.0.0.1:8080/node_modules/@angular/compiler/src/runtime_compiler.js:174:83)↵ at Set.forEach (native)↵ at compile (http://127.0.0.1:8080/node_modules/@angular/compiler/src/runtime_compiler.js:174:47)↵ at ZoneDelegate.invoke (http://127.0.0.1:8080/node_modules/zone.js/dist/zone.js:323:29)↵ at Zone.run (http://127.0.0.1:8080/node_modules/zone.js/dist/zone.js:216:44)↵ at http://127.0.0.1:8080/node_modules/zone.js/dist/zone.js:571:58↵ at ZoneDelegate.invokeTask (http://127.0.0.1:8080/node_modules/zone.js/dist/zone.js:356:38)"__proto_: ErrorconsoleError @ zone.js:461_loop_1 @ zone.js:490drainMicroTaskQueue @ zone.js:494ZoneTask.invoke @ zone.js:426
zone.js:463 Error: Uncaught (in promise): Template parse errors:(…)consoleError @ zone.js:463_loop_1 @ zone.js:490drainMicroTaskQueue @ zone.js:494ZoneTask.invoke @ zone.js:426

Erro ao tentar rodar o projeto 08

A parte do backend em node está rodando blz.

A parte de frontend compila legal, sem erros. No entanto, em execução, está ocorrendo os seguintes erros, capturados diretamente do navegador.

EXCEPTION: Error in :0:0
browser_adapter.ts:78 EXCEPTION: Error in :0:0BrowserDomAdapter.logError @ browser_adapter.ts:78BrowserDomAdapter.logGroup @ browser_adapter.ts:89ExceptionHandler.call @ exception_handler.ts:53(anonymous function) @ application_ref.ts:345ZoneDelegate.invoke @ zone.js:323onInvoke @ ng_zone_impl.ts:67ZoneDelegate.invoke @ zone.js:322Zone.run @ zone.js:216NgZoneImpl.runInner @ ng_zone_impl.ts:99NgZone.run @ ng_zone.ts:210ApplicationRef_.run @ application_ref.ts:335ApplicationRef_.bootstrap @ application_ref.ts:357(anonymous function) @ application_ref.ts:105ZoneDelegate.invoke @ zone.js:323onInvoke @ ng_zone_impl.ts:67ZoneDelegate.invoke @ zone.js:322Zone.run @ zone.js:216(anonymous function) @ zone.js:571ZoneDelegate.invokeTask @ zone.js:356onInvokeTask @ ng_zone_impl.ts:56ZoneDelegate.invokeTask @ zone.js:355Zone.runTask @ zone.js:256drainMicroTaskQueue @ zone.js:474ZoneTask.invoke @ zone.js:426
browser_adapter.ts:78 ORIGINAL EXCEPTION: No provider for PlatformLocation!BrowserDomAdapter.logError @ browser_adapter.ts:78ExceptionHandler.call @ exception_handler.ts:65(anonymous function) @ application_ref.ts:345ZoneDelegate.invoke @ zone.js:323onInvoke @ ng_zone_impl.ts:67ZoneDelegate.invoke @ zone.js:322Zone.run @ zone.js:216NgZoneImpl.runInner @ ng_zone_impl.ts:99NgZone.run @ ng_zone.ts:210ApplicationRef_.run @ application_ref.ts:335ApplicationRef_.bootstrap @ application_ref.ts:357(anonymous function) @ application_ref.ts:105ZoneDelegate.invoke @ zone.js:323onInvoke @ ng_zone_impl.ts:67ZoneDelegate.invoke @ zone.js:322Zone.run @ zone.js:216(anonymous function) @ zone.js:571ZoneDelegate.invokeTask @ zone.js:356onInvokeTask @ ng_zone_impl.ts:56ZoneDelegate.invokeTask @ zone.js:355Zone.runTask @ zone.js:256drainMicroTaskQueue @ zone.js:474ZoneTask.invoke @ zone.js:426
browser_adapter.ts:78 ORIGINAL STACKTRACE:BrowserDomAdapter.logError @ browser_adapter.ts:78ExceptionHandler.call @ exception_handler.ts:69(anonymous function) @ application_ref.ts:345ZoneDelegate.invoke @ zone.js:323onInvoke @ ng_zone_impl.ts:67ZoneDelegate.invoke @ zone.js:322Zone.run @ zone.js:216NgZoneImpl.runInner @ ng_zone_impl.ts:99NgZone.run @ ng_zone.ts:210ApplicationRef_.run @ application_ref.ts:335ApplicationRef_.bootstrap @ application_ref.ts:357(anonymous function) @ application_ref.ts:105ZoneDelegate.invoke @ zone.js:323onInvoke @ ng_zone_impl.ts:67ZoneDelegate.invoke @ zone.js:322Zone.run @ zone.js:216(anonymous function) @ zone.js:571ZoneDelegate.invokeTask @ zone.js:356onInvokeTask @ ng_zone_impl.ts:56ZoneDelegate.invokeTask @ zone.js:355Zone.runTask @ zone.js:256drainMicroTaskQueue @ zone.js:474ZoneTask.invoke @ zone.js:426
browser_adapter.ts:78 Error: DI Exception
at NoProviderError.BaseException as constructor
at NoProviderError.AbstractProviderError as constructor
at new NoProviderError (reflective_exceptions.ts:85)
at ReflectiveInjector_.throwOrNull (reflective_injector.ts:844)
at ReflectiveInjector
.getByKeyDefault (reflective_injector.ts:873)
at ReflectiveInjector
.getByKey (reflective_injector.ts:835)
at ReflectiveInjector
.get (reflective_injector.ts:632)
at DebugAppView.get (AppComponent_Host.template.js:34)
at DebugAppView.get (AppComponent_Host.template.js:40)
at DebugAppView.get (AppComponent_Host.template.js:46)BrowserDomAdapter.logError @ browser_adapter.ts:78ExceptionHandler.call @ exception_handler.ts:70(anonymous function) @ application_ref.ts:345ZoneDelegate.invoke @ zone.js:323onInvoke @ ng_zone_impl.ts:67ZoneDelegate.invoke @ zone.js:322Zone.run @ zone.js:216NgZoneImpl.runInner @ ng_zone_impl.ts:99NgZone.run @ ng_zone.ts:210ApplicationRef_.run @ application_ref.ts:335ApplicationRef_.bootstrap @ application_ref.ts:357(anonymous function) @ application_ref.ts:105ZoneDelegate.invoke @ zone.js:323onInvoke @ ng_zone_impl.ts:67ZoneDelegate.invoke @ zone.js:322Zone.run @ zone.js:216(anonymous function) @ zone.js:571ZoneDelegate.invokeTask @ zone.js:356onInvokeTask @ ng_zone_impl.ts:56ZoneDelegate.invokeTask @ zone.js:355Zone.runTask @ zone.js:256drainMicroTaskQueue @ zone.js:474ZoneTask.invoke @ zone.js:426
browser_adapter.ts:78 ERROR CONTEXT:BrowserDomAdapter.logError @ browser_adapter.ts:78ExceptionHandler.call @ exception_handler.ts:74(anonymous function) @ application_ref.ts:345ZoneDelegate.invoke @ zone.js:323onInvoke @ ng_zone_impl.ts:67ZoneDelegate.invoke @ zone.js:322Zone.run @ zone.js:216NgZoneImpl.runInner @ ng_zone_impl.ts:99NgZone.run @ ng_zone.ts:210ApplicationRef_.run @ application_ref.ts:335ApplicationRef_.bootstrap @ application_ref.ts:357(anonymous function) @ application_ref.ts:105ZoneDelegate.invoke @ zone.js:323onInvoke @ ng_zone_impl.ts:67ZoneDelegate.invoke @ zone.js:322Zone.run @ zone.js:216(anonymous function) @ zone.js:571ZoneDelegate.invokeTask @ zone.js:356onInvokeTask @ ng_zone_impl.ts:56ZoneDelegate.invokeTask @ zone.js:355Zone.runTask @ zone.js:256drainMicroTaskQueue @ zone.js:474ZoneTask.invoke @ zone.js:426
browser_adapter.ts:78 DebugContext {_view: _View_AppComponent_Host0, nodeIndex: 0, tplRow: 0, tplCol: 0}BrowserDomAdapter.logError @ browser_adapter.ts:78ExceptionHandler.call @ exception_handler.ts:75(anonymous function) @ application_ref.ts:345ZoneDelegate.invoke @ zone.js:323onInvoke @ ng_zone_impl.ts:67ZoneDelegate.invoke @ zone.js:322Zone.run @ zone.js:216NgZoneImpl.runInner @ ng_zone_impl.ts:99NgZone.run @ ng_zone.ts:210ApplicationRef.run @ application_ref.ts:335ApplicationRef.bootstrap @ application_ref.ts:357(anonymous function) @ application_ref.ts:105ZoneDelegate.invoke @ zone.js:323onInvoke @ ng_zone_impl.ts:67ZoneDelegate.invoke @ zone.js:322Zone.run @ zone.js:216(anonymous function) @ zone.js:571ZoneDelegate.invokeTask @ zone.js:356onInvokeTask @ ng_zone_impl.ts:56ZoneDelegate.invokeTask @ zone.js:355Zone.runTask @ zone.js:256drainMicroTaskQueue @ zone.js:474ZoneTask.invoke @ zone.js:426
browser_adapter.ts:88 EXCEPTION: Error in :0:0
browser_adapter.ts:78 EXCEPTION: Error in :0:0BrowserDomAdapter.logError @ browser_adapter.ts:78BrowserDomAdapter.logGroup @ browser_adapter.ts:89ExceptionHandler.call @ exception_handler.ts:53(anonymous function) @ application_ref.ts:341ZoneDelegate.invoke @ zone.js:323onInvoke @ ng_zone_impl.ts:67ZoneDelegate.invoke @ zone.js:322Zone.run @ zone.js:216(anonymous function) @ zone.js:571ZoneDelegate.invokeTask @ zone.js:356onInvokeTask @ ng_zone_impl.ts:56ZoneDelegate.invokeTask @ zone.js:355Zone.runTask @ zone.js:256drainMicroTaskQueue @ zone.js:474ZoneTask.invoke @ zone.js:426
browser_adapter.ts:78 ORIGINAL EXCEPTION: No provider for PlatformLocation!BrowserDomAdapter.logError @ browser_adapter.ts:78ExceptionHandler.call @ exception_handler.ts:65(anonymous function) @ application_ref.ts:341ZoneDelegate.invoke @ zone.js:323onInvoke @ ng_zone_impl.ts:67ZoneDelegate.invoke @ zone.js:322Zone.run @ zone.js:216(anonymous function) @ zone.js:571ZoneDelegate.invokeTask @ zone.js:356onInvokeTask @ ng_zone_impl.ts:56ZoneDelegate.invokeTask @ zone.js:355Zone.runTask @ zone.js:256drainMicroTaskQueue @ zone.js:474ZoneTask.invoke @ zone.js:426
browser_adapter.ts:78 ORIGINAL STACKTRACE:BrowserDomAdapter.logError @ browser_adapter.ts:78ExceptionHandler.call @ exception_handler.ts:69(anonymous function) @ application_ref.ts:341ZoneDelegate.invoke @ zone.js:323onInvoke @ ng_zone_impl.ts:67ZoneDelegate.invoke @ zone.js:322Zone.run @ zone.js:216(anonymous function) @ zone.js:571ZoneDelegate.invokeTask @ zone.js:356onInvokeTask @ ng_zone_impl.ts:56ZoneDelegate.invokeTask @ zone.js:355Zone.runTask @ zone.js:256drainMicroTaskQueue @ zone.js:474ZoneTask.invoke @ zone.js:426
browser_adapter.ts:78 Error: DI Exception
at NoProviderError.BaseException as constructor
at NoProviderError.AbstractProviderError as constructor
at new NoProviderError (reflective_exceptions.ts:85)
at ReflectiveInjector
.throwOrNull (reflective_injector.ts:844)
at ReflectiveInjector
.getByKeyDefault (reflective_injector.ts:873)
at ReflectiveInjector
.getByKey (reflective_injector.ts:835)
at ReflectiveInjector
.get (reflective_injector.ts:632)
at DebugAppView.get (AppComponent_Host.template.js:34)
at DebugAppView.get (AppComponent_Host.template.js:40)
at DebugAppView.get (AppComponent_Host.template.js:46)BrowserDomAdapter.logError @ browser_adapter.ts:78ExceptionHandler.call @ exception_handler.ts:70(anonymous function) @ application_ref.ts:341ZoneDelegate.invoke @ zone.js:323onInvoke @ ng_zone_impl.ts:67ZoneDelegate.invoke @ zone.js:322Zone.run @ zone.js:216(anonymous function) @ zone.js:571ZoneDelegate.invokeTask @ zone.js:356onInvokeTask @ ng_zone_impl.ts:56ZoneDelegate.invokeTask @ zone.js:355Zone.runTask @ zone.js:256drainMicroTaskQueue @ zone.js:474ZoneTask.invoke @ zone.js:426
browser_adapter.ts:78 ERROR CONTEXT:BrowserDomAdapter.logError @ browser_adapter.ts:78ExceptionHandler.call @ exception_handler.ts:74(anonymous function) @ application_ref.ts:341ZoneDelegate.invoke @ zone.js:323onInvoke @ ng_zone_impl.ts:67ZoneDelegate.invoke @ zone.js:322Zone.run @ zone.js:216(anonymous function) @ zone.js:571ZoneDelegate.invokeTask @ zone.js:356onInvokeTask @ ng_zone_impl.ts:56ZoneDelegate.invokeTask @ zone.js:355Zone.runTask @ zone.js:256drainMicroTaskQueue @ zone.js:474ZoneTask.invoke @ zone.js:426
browser_adapter.ts:78 DebugContext {_view: _View_AppComponent_Host0, _nodeIndex: 0, tplRow: 0, tplCol: 0}BrowserDomAdapter.logError @ browser_adapter.ts:78ExceptionHandler.call @ exception_handler.ts:75(anonymous function) @ application_ref.ts:341ZoneDelegate.invoke @ zone.js:323onInvoke @ ng_zone_impl.ts:67ZoneDelegate.invoke @ zone.js:322Zone.run @ zone.js:216(anonymous function) @ zone.js:571ZoneDelegate.invokeTask @ zone.js:356onInvokeTask @ ng_zone_impl.ts:56ZoneDelegate.invokeTask @ zone.js:355Zone.runTask @ zone.js:256drainMicroTaskQueue @ zone.js:474ZoneTask.invoke @ zone.js:426
browser_adapter.ts:88 EXCEPTION: Error: Uncaught (in promise): EXCEPTION: Error in :0:0
ORIGINAL EXCEPTION: No provider for PlatformLocation!
ORIGINAL STACKTRACE:
Error: DI Exception
at NoProviderError.BaseException as constructor
at NoProviderError.AbstractProviderError as constructor
at new NoProviderError (http://localhost:8080/libs//core/src/di/reflective_exceptions.js:75:16)
at ReflectiveInjector
.throwOrNull (http://localhost:8080/libs//core/src/di/reflective_injector.js:776:19)
at ReflectiveInjector
.getByKeyDefault (http://localhost:8080/libs//core/src/di/reflective_injector.js:804:25)
at ReflectiveInjector
.getByKey (http://localhost:8080/libs//core/src/di/reflective_injector.js:767:25)
at ReflectiveInjector
.get (http://localhost:8080/libs//core/src/di/reflective_injector.js:576:21)
at DebugAppView.get (AppComponent_Host.template.js:34:130)
at DebugAppView.get (AppComponent_Host.template.js:40:85)
at DebugAppView.get (AppComponent_Host.template.js:46:234)
ERROR CONTEXT:
[object Object]
browser_adapter.ts:78 EXCEPTION: Error: Uncaught (in promise): EXCEPTION: Error in :0:0
ORIGINAL EXCEPTION: No provider for PlatformLocation!
ORIGINAL STACKTRACE:
Error: DI Exception
at NoProviderError.BaseException as constructor
at NoProviderError.AbstractProviderError as constructor
at new NoProviderError (http://localhost:8080/libs//core/src/di/reflective_exceptions.js:75:16)
at ReflectiveInjector
.throwOrNull (http://localhost:8080/libs//core/src/di/reflective_injector.js:776:19)
at ReflectiveInjector
.getByKeyDefault (http://localhost:8080/libs//core/src/di/reflective_injector.js:804:25)
at ReflectiveInjector
.getByKey (http://localhost:8080/libs//core/src/di/reflective_injector.js:767:25)
at ReflectiveInjector
.get (http://localhost:8080/libs//core/src/di/reflective_injector.js:576:21)
at DebugAppView.get (AppComponent_Host.template.js:34:130)
at DebugAppView.get (AppComponent_Host.template.js:40:85)
at DebugAppView.get (AppComponent_Host.template.js:46:234)
ERROR CONTEXT:
[object Object]BrowserDomAdapter.logError @ browser_adapter.ts:78BrowserDomAdapter.logGroup @ browser_adapter.ts:89ExceptionHandler.call @ exception_handler.ts:53(anonymous function) @ application_ref.ts:304schedulerFn @ async.ts:131SafeSubscriber.__tryOrUnsub @ Subscriber.ts:240SafeSubscriber.next @ Subscriber.ts:192Subscriber._next @ Subscriber.ts:133Subscriber.next @ Subscriber.ts:93Subject._finalNext @ Subject.ts:154Subject._next @ Subject.ts:144Subject.next @ Subject.ts:90EventEmitter.emit @ async.ts:117onError @ ng_zone.ts:138onHandleError @ ng_zone_impl.ts:90ZoneDelegate.handleError @ zone.js:327Zone.runGuarded @ zone.js:233_loop_1 @ zone.js:487drainMicroTaskQueue @ zone.js:494ZoneTask.invoke @ zone.js:426
browser_adapter.ts:78 STACKTRACE:BrowserDomAdapter.logError @ browser_adapter.ts:78ExceptionHandler.call @ exception_handler.ts:56(anonymous function) @ application_ref.ts:304schedulerFn @ async.ts:131SafeSubscriber.__tryOrUnsub @ Subscriber.ts:240SafeSubscriber.next @ Subscriber.ts:192Subscriber._next @ Subscriber.ts:133Subscriber.next @ Subscriber.ts:93Subject._finalNext @ Subject.ts:154Subject.next @ Subject.ts:144Subject.next @ Subject.ts:90EventEmitter.emit @ async.ts:117onError @ ng_zone.ts:138onHandleError @ ng_zone_impl.ts:90ZoneDelegate.handleError @ zone.js:327Zone.runGuarded @ zone.js:233_loop_1 @ zone.js:487drainMicroTaskQueue @ zone.js:494ZoneTask.invoke @ zone.js:426
browser_adapter.ts:78 Error: Uncaught (in promise): EXCEPTION: Error in :0:0
ORIGINAL EXCEPTION: No provider for PlatformLocation!
ORIGINAL STACKTRACE:
Error: DI Exception
at NoProviderError.BaseException as constructor
at NoProviderError.AbstractProviderError as constructor
at new NoProviderError (http://localhost:8080/libs//core/src/di/reflective_exceptions.js:75:16)
at ReflectiveInjector
.throwOrNull (http://localhost:8080/libs//core/src/di/reflective_injector.js:776:19)
at ReflectiveInjector
.getByKeyDefault (http://localhost:8080/libs//core/src/di/reflective_injector.js:804:25)
at ReflectiveInjector
.getByKey (http://localhost:8080/libs//core/src/di/reflective_injector.js:767:25)
at ReflectiveInjector
.get (http://localhost:8080/libs//core/src/di/reflective_injector.js:576:21)
at DebugAppView.get (AppComponent_Host.template.js:34:130)
at DebugAppView.get (AppComponent_Host.template.js:40:85)
at DebugAppView.get (AppComponent_Host.template.js:46:234)
ERROR CONTEXT:
[object Object]
at resolvePromise (http://localhost:8080/libs/zone.js:538:32)
at PromiseCompleter.reject (http://localhost:8080/libs/zone.js:515:14)
at eval (http://localhost:8080/libs//core/src/application_ref.js:295:35)
at ZoneDelegate.invoke (http://localhost:8080/libs/zone.js:323:29)
at Object.onInvoke (http://localhost:8080/libs//core/src/zone/ng_zone_impl.js:45:41)
at ZoneDelegate.invoke (http://localhost:8080/libs/zone.js:322:35)
at Zone.run (http://localhost:8080/libs/zone.js:216:44)
at http://localhost:8080/libs/zone.js:571:58
at ZoneDelegate.invokeTask (http://localhost:8080/libs/zone.js:356:38)
at Object.onInvokeTask (http://localhost:8080/libs//core/src/zone/ng_zone_impl.js:36:41)BrowserDomAdapter.logError @ browser_adapter.ts:78ExceptionHandler.call @ exception_handler.ts:57(anonymous function) @ application_ref.ts:304schedulerFn @ async.ts:131SafeSubscriber.__tryOrUnsub @ Subscriber.ts:240SafeSubscriber.next @ Subscriber.ts:192Subscriber._next @ Subscriber.ts:133Subscriber.next @ Subscriber.ts:93Subject._finalNext @ Subject.ts:154Subject.next @ Subject.ts:144Subject.next @ Subject.ts:90EventEmitter.emit @ async.ts:117onError @ ng_zone.ts:138onHandleError @ ng_zone_impl.ts:90ZoneDelegate.handleError @ zone.js:327Zone.runGuarded @ zone.js:233_loop_1 @ zone.js:487drainMicroTaskQueue @ zone.js:494ZoneTask.invoke @ zone.js:426
zone.js:461 Unhandled Promise rejection: EXCEPTION: Error in :0:0
ORIGINAL EXCEPTION: No provider for PlatformLocation!
ORIGINAL STACKTRACE:
Error: DI Exception
at NoProviderError.BaseException as constructor
at NoProviderError.AbstractProviderError as constructor
at new NoProviderError (http://localhost:8080/libs//core/src/di/reflective_exceptions.js:75:16)
at ReflectiveInjector
.throwOrNull (http://localhost:8080/libs//core/src/di/reflective_injector.js:776:19)
at ReflectiveInjector
.getByKeyDefault (http://localhost:8080/libs//core/src/di/reflective_injector.js:804:25)
at ReflectiveInjector
.getByKey (http://localhost:8080/libs//core/src/di/reflective_injector.js:767:25)
at ReflectiveInjector
.get (http://localhost:8080/libs//core/src/di/reflective_injector.js:576:21)
at DebugAppView.get (AppComponent_Host.template.js:34:130)
at DebugAppView.get (AppComponent_Host.template.js:40:85)
at DebugAppView.get (AppComponent_Host.template.js:46:234)
ERROR CONTEXT:
[object Object] ; Zone: angular ; Task: Promise.then ; Value: ViewWrappedException {_wrapperMessage: "Error in :0:0", _originalException: NoProviderError, _originalStack: "Error: DI Exception↵ at NoProviderError.BaseExc…ppView.get (AppComponent_Host.template.js:46:234)", _context: DebugContext, _wrapperStack: "Error: Error in :0:0↵ at ViewWrappedException.W…calhost:8080/libs//core/src/linker/view.js:66:21)"}consoleError @ zone.js:461_loop_1 @ zone.js:490drainMicroTaskQueue @ zone.js:494ZoneTask.invoke @ zone.js:426
zone.js:463 Error: Uncaught (in promise): EXCEPTION: Error in :0:0(…)consoleError @ zone.js:463_loop_1 @ zone.js:490drainMicroTaskQueue @ zone.js:494ZoneTask.invoke @ zone.js:426

Blog application error

The application exposed on theme 8 is not working. I downloaded the example from the repositories. Have you tested well the application?

This is the chrome console error:

Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:9090/angular2/http
Error: XHR error (404 Not Found) loading http://localhost:9090/angular2/http
at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:9090/libs/zone.js:698:29)
at ZoneDelegate.invokeTask (http://localhost:9090/libs/zone.js:265:35)
at Zone.runTask (http://localhost:9090/libs/zone.js:154:47)
at XMLHttpRequest.ZoneTask.invoke (http://localhost:9090/libs/zone.js:335:33)
Error loading http://localhost:9090/angular2/http as "angular2/http" from http://localhost:9090/app/boot.js
at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:9090/libs/zone.js:698:29)
at ZoneDelegate.invokeTask (http://localhost:9090/libs/zone.js:265:35)
at Zone.runTask (http://localhost:9090/libs/zone.js:154:47)
at XMLHttpRequest.ZoneTask.invoke (http://localhost:9090/libs/zone.js:335:33)
Error loading http://localhost:9090/angular2/http as "angular2/http" from http://localhost:9090/app/boot.js

Listen on port 9090 instead of 8080

Angular 2 can't find Promise,Map,Set and Iterator

Hi Daniel,
In AngularBase example, I realized and followed your changes to angular-2 rc1 but still had errors: cannot find Promise, Map, Set.
Here is the output (vscode):
node_modules/@angular/core/src/application_ref.d.ts(39,88): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/application_ref.d.ts(99,42): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/application_ref.d.ts(174,33): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/change_detection/differs/default_keyvalue_differ.d.ts(24,15): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/change_detection/differs/default_keyvalue_differ.d.ts(26,16): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/di/reflective_provider.d.ts(105,123): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/di/reflective_provider.d.ts(105,165): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/async.d.ts(27,33): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/async.d.ts(28,45): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/collection.d.ts(1,25): error TS2304: Cannot find name 'MapConstructor'.
node_modules/@angular/core/src/facade/collection.d.ts(2,25): error TS2304: Cannot find name 'SetConstructor'.
node_modules/@angular/core/src/facade/collection.d.ts(4,27): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/collection.d.ts(4,39): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/collection.d.ts(7,9): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/collection.d.ts(8,30): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/collection.d.ts(11,43): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/collection.d.ts(12,27): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/collection.d.ts(14,23): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/collection.d.ts(15,25): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/collection.d.ts(100,41): error TS2304: Cannot find name 'Set'.
node_modules/@angular/core/src/facade/collection.d.ts(101,22): error TS2304: Cannot find name 'Set'.
node_modules/@angular/core/src/facade/collection.d.ts(102,25): error TS2304: Cannot find name 'Set'.
node_modules/@angular/core/src/facade/lang.d.ts(4,17): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/lang.d.ts(5,17): error TS2304: Cannot find name 'Set'.
node_modules/@angular/core/src/facade/lang.d.ts(70,59): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/promise.d.ts(2,14): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/promise.d.ts(8,32): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/promise.d.ts(9,38): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/promise.d.ts(10,35): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/promise.d.ts(10,93): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/promise.d.ts(11,34): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/promise.d.ts(11,50): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/promise.d.ts(12,32): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/promise.d.ts(12,149): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/promise.d.ts(13,43): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/linker/component_resolver.d.ts(8,53): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/linker/component_resolver.d.ts(12,44): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/linker/dynamic_component_loader.d.ts(62,148): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/linker/dynamic_component_loader.d.ts(103,144): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/linker/dynamic_component_loader.d.ts(108,139): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/linker/dynamic_component_loader.d.ts(109,135): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/reflection/reflector.d.ts(28,22): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/reflection/reflector.d.ts(30,15): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/reflection/reflector.d.ts(32,15): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/reflection/reflector.d.ts(34,15): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/reflection/reflector.d.ts(36,16): error TS2304: Cannot find name 'Set'.
node_modules/@angular/core/src/testability/testability.d.ts(40,20): error TS2304: Cannot find name 'Map'.
node_modules/@angular/platform-browser-dynamic/platform_browser_dynamic.d.ts(75,90): error TS2304: Cannot find name 'Promise'.
node_modules/rxjs/Observable.d.ts(10,66): error TS2304: Cannot find name 'Promise'.
node_modules/rxjs/Observable.d.ts(66,60): error TS2304: Cannot find name 'Promise'.
node_modules/rxjs/Observable.d.ts(66,70): error TS2304: Cannot find name 'Promise'.

Finally, I changed "target": "es5" to "es6" in tsconfige.json file and solved all errors.
Reference: http://stackoverflow.com/questions/35660498/

Regards,
Thang

Link problem with ebook

We buy your book, ITS AWESOME!

Just a tip: fix the link on readme, we believe no one can lost this excelente book.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.