1
私はangular2とng2-bootstrapを使用しています。エラーを受け取る "TypeError:未定義は観測できません"
次のように私の先行入力が設定され:
<input [(ngModel)]="selectedAsset"
[typeahead]="assets"
(typeaheadOnSelect)="typeaheadOnSelect($event)"
class="form-control">
できるだけ早く私は、入力ボックスに入力すると、私はこのエラーを取得する:
typeahead.directive.js:189 TypeError: undefined is not observable
未定義のモデルを指示に渡しているようです。あなたのコントローラでモデルを定義し、それを渡してみてください。 Btw、これはちょうど推測です。 –
エラー:エラー:XHRエラー(404 Not Found):http:// localhost:3000/node_modules/momentを読み込んでいます 解決策が見つかりました:https://github.com/mgechev/angular- seed/issues/442 –