试图理解角度误差(v4.2.4)

时间:2017-12-01 17:08:02

标签: javascript angular observable

我正在使用Angular 4.2.4和Angular CLI 1.4.9版。我输入了第一版Angular 2 Development w / TypeScript(第5章)中的一个例子并得到了这个错误。任何人都可以帮助我理解这种错误可能意味着什么?这本书的作者没有帮助。

    `Uncaught Error: Template parse errors:
No provider for ControlContainer ("[ERROR ->]<form name="searchForm" role="form">
    <div class="form-group">
        <label for="productTitle">P"): ng:///AppModule/SearchComponent.html@0:0
    at syntaxError (compiler.es5.js:1694)
    at TemplateParser.webpackJsonp.../../../compiler/@angular/compiler.es5.js.TemplateParser.parse (compiler.es5.js:12791)
    at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler._compileTemplate (compiler.es5.js:26994)
    at compiler.es5.js:26913
    at Set.forEach (<anonymous>)
    at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler._compileComponents (compiler.es5.js:26913)
    at compiler.es5.js:26800
    at Object.then (compiler.es5.js:1683)
    at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler._compileModuleAndComponents (compiler.es5.js:26799)
    at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler.compileModuleAsync (compiler.es5.js:26728)`

0 个答案:

没有答案