It looks like you are opening a modal using a simple jQuery approach. This will not work in Angular because the open modal is not connected to the Angular application, so it does not know that the modal needs to be processed, HTML is parsed, etc.
Instead, you must use directives correctly, or in the case of a modal dialog, you can simply use existing ones, for example, the Angular UI project, which brings ready-made Bootstrap directives for Angular. In your case, you will need the $modal service.
Use would then be very simple:
// remember to add ui.bootstrap module dependency angular.module('myModule', ['ui.bootstrap']); angular.module('myModule').controller('myController', ["$rootScope", "$scope", "$filter", "$modal", "dataService", function ($rootScope, $scope, $filter, $modal, dataService) { $scope.checkItem = ""; $scope.loadEditForm = function () { $scope.checkItem = "yes"; $modal.open({ templateUrl: 'modal.html', controller: 'modalController', scope: $scope }); }; }]);
Demo: http://plnkr.co/edit/kQz0fiaXLv7T37N8fzJU?p=preview
source share