問題タブ [viewchild]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
angular - Angular 2 @ViewChild が機能しません。未定義のプロパティ「タイトル」を読み取れません
@ViewChildでインポートしてもコンポーネントのプロパティにアクセスできません。以下はコードです。
header.monitor.component.ts
header.monitor.component.html
admin.component.ts
エラーエラー: キャッチされていません (約束されています): TypeError: 未定義のプロパティ 'title' を読み取れません TypeError: 未定義のプロパティ 'title' を読み取れません
このエラーの解決にご協力ください。