問題タブ [aurelia-templating]
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.
aurelia - Aurelia TypeError: this.sourceExpression.connect は関数ではありません
実行時エラーが発生しました:
TypeError: this.sourceExpression.connect は関数ではありません
問題は、stacktrace が有用なものを何も表示しないことです。バンドルされたコンポーネント (この場合は Leaflet の MarkerClusterGroup) の 1 つの最後の行を (ランダムに) 指しています。
キャッチされていない TypeError: this.sourceExpression.connect は、enqueueBindingConnect (MarkerClusterGroup.Refresh.js:110) の ChildInterpolationBinding.connect (MarkerClusterGroup.Refresh.js:110) の関数ではありません。 View.bind (MarkerClusterGroup.Refresh.js:110) で If._show (MarkerClusterGroup.Refresh.js:110) で If._update (MarkerClusterGroup.Refresh.js:110) で If.conditionChanged (MarkerClusterGroup.Refresh.js:110) ) BehaviorPropertyObserver.selfSubscriber (MarkerClusterGroup.Refresh.js:110) で BehaviorPropertyObserver.call (MarkerClusterGroup.Refresh.js:110) で BehaviorPropertyObserver.setValue (MarkerClusterGroup.Refresh.js:110) で If.descriptor.set [条件として] (MarkerClusterGroup.Refresh.js:110) オブジェクトで。setValue (MarkerClusterGroup.Refresh.js:110) で Binding.updateTarget (MarkerClusterGroup.Refresh.js:110) で Binding.call (MarkerClusterGroup.Refresh.js:110) で BehaviorPropertyObserver.callSubscribers (MarkerClusterGroup.Refresh.js:110) でBehaviorPropertyObserver.call (MarkerClusterGroup.Refresh.js:110)
aurelia - リピーターから手動でコンパイルされたテンプレートを使用するには?
LOB スタイルの Aurelia アプリ用のカスタム データ グリッド フレームワークを構築しています。メイン グリッド要素をテンプレート化して、レンダリング用に子列要素からカスタム セル テンプレートを取得できるようにする方法についてサポートが必要です。
これは私がこれまでに行ったことです:
grid-example.html
data-column.ts
data-grid.html
data-grid.ts
data-column
要素は、インスタンスに手動で解析されるセル テンプレートを宣言ViewFactory
しtd
ますdata-grid
。テンプレートのコンテンツがあります。
これはデフォルトのrepeat.for
構文で行うことができますか? または、これを行うには、スコープからバインド可能なパラメーターとして ViewFactory インスタンスをさらに受け入れることができるカスタム テンプレート コントローラーが必要ですか?
この要件を達成するためのより良い方法があれば、それも受け入れます。