मैं जैसे मैं सब कुछ कोशिश की है और मैं अभी भी त्रुटि मिलती है लग रहा है: निम्नलिखित मेरी इंडेक्स फ़ाइल मेंटेम्पलेट लोड करने में असफल: UIB/टेम्पलेट/मोडल/window.html
Failed to load template: uib/template/modal/window.html
मैं जोड़ लिया है:
<script src="node_modules/angular-ui-bootstrap/dist/ui-bootstrap.js"></script>
<script src="node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js"></script>
मेरे ऐप फ़ाइल Ive में
कहा:
'ui.bootstrap',
और मेरे नियंत्रक फ़ाइल Ive में निम्नलिखित कहा:
$uibModal
और
this.openPayment = function() {
var modalInstance = $uibModal.open({
ariaLabelledBy: 'modal-title',
ariaDescribedBy: 'modal-body',
templateUrl: 'payment.html',
controller: 'paymentController',
controllerAs: '$ctrl',
size: 'lg',
});
}
में
मेरी paymentController
मैं जोड़ लिया है निम्नलिखित:
angular.module('Payment').controller('paymentController', function ($uibModalInstance) {
var ctrl = this;
});
और payment.html
:
<div class="modal-header">
<h3 class="modal-title" translate="ACADEMY.EDIT.COURSES.CREATE"></h3>
</div>
<div class="modal-body">
</div>
<div class="lb-modal-footer">
<a class="btn btn-grey" tooltip="{{ 'TOOLTIP.CANCEL' | translate }}" ng-click="CTRL.cancel()"><i
class="fa fa-ban"></i></a>
<button class="btn btn-success m-l-xs {{CTRL.academyCourse.course ? '':'disabled'}}" tooltip="{{ 'TOOLTIP.SAVE_AND_EXIT' | translate }}" ng-click="CTRL.addCourse()"><i
class="fa fa-check-square-o"></i></button>
</div>
तो किसी को भी मुझे बता सकते हैं क्या Ive गलत किया ?
क्या आप एक प्लंकर बना सकते हैं? – Aravind
क्या आपका pay.html फ़ोल्डर संरचना में है? आपको इसे पथ रखना होगा। अपने ब्राउज़र में देखें और देखें कि यह कहां से लोड करने का प्रयास कर रहा है, और देखें कि वह कहां है। एक टेम्पलेट कैश में भी देखें, बाद में इसे सही करने के लिए। यो को गुलप या कोणीय टेम्पलेट कैश का उपयोग करना होगा .. क्या आप अपने ऐप की संरचना, अपनी फ़ोल्डर संरचना दिखा सकते हैं। मुझे लगता है कि यह आपको यह नहीं मिल रहा है जहां आप सोचते हैं, आम तौर पर यह ऐप/मेरा फ़ोल्डर/मेरा नियंत्रक/टेम्पलेट.html – Maccurt
@ मैकर्टर्ट जैसा कुछ सही दिखता है, मैंने अलग-अलग पथों की कोशिश की है और हर बार मुझे यह त्रुटि मिलती है ! –