問題タブ [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.
angularjs - AngularJS:Modal Controllerにパラメータを渡すより良い方法はどれですか?
パラメータを に渡す 2 つの方法を見てきました。1 つはバインディングをAngularJS
Modal
介して、もう 1 つはバインディングを介してです。一方が他方よりも優れているかどうか疑問に思っていましたが、その理由は何ですか?resolve
scope
バインディングを解決
スコープバインディング
javascript - AngularJS Bootstrap Modal $modalInstance.dismiss は関数ではありません
モーダルのキャンセルボタンをクリックすると、モーダル テンプレートの ng-click にバインドされた $modalInstance.dismiss 関数が機能しません。
コンソールがエラーをスローしています:「$modalInstance.dismiss は関数ではありません」
モーダル テンプレート:
メインコントローラー:
モーダルコントローラー:
コードをいじり、AngularJS Bootstrap UI ドキュメント、いくつかの StackOverflow スレッド、および他のサイトを調べて約 3 時間費やしましたが、どこにも行き着きませんでした。どんな助けでも大歓迎です。