問題タブ [angular-ui-modal]

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.

0 投票する
1 に答える
485 参照

angularjs - AngularJS:Modal Controllerにパラメータを渡すより良い方法はどれですか?

パラメータを に渡す 2 つの方法を見てきました。1 つはバインディングをAngularJS Modal介して、もう 1 つはバインディングを介してです。一方が他方よりも優れているかどうか疑問に思っていましたが、その理由は何ですか?resolvescope

バインディングを解決


スコープバインディング


0 投票する
1 に答える
3671 参照

javascript - AngularJS Bootstrap Modal $modalInstance.dismiss は関数ではありません

モーダルのキャンセルボタンをクリックすると、モーダル テンプレートの ng-click にバインドされた $modalInstance.dismiss 関数が機能しません。

コンソールがエラーをスローしています:「$modalInstance.dismiss は関数ではありません」

モーダル テンプレート:

メインコントローラー:

モーダルコントローラー:

コードをいじり、AngularJS Bootstrap UI ドキュメント、いくつかの StackOverflow スレッド、および他のサイトを調べて約 3 時間費やしましたが、どこにも行き着きませんでした。どんな助けでも大歓迎です。