Answer the question
In order to leave comments, you need to log in
How to stop being perplexed when working with angular and components?
There is a controller with a component connected to it (model windows), link: https://angular-ui.github.io/bootstrap/#/modal . And everything worked great until today. I decided to correct the form, but for some reason it is not updated in the project. How? Where to dig? How is this possible?
Controller + window call:
app.controller('MainController', function($rootScope, $routeParams, $modal, $resource, $scope, $location, $log, searchThemes, mainHolder) {
// вызов окна
$scope.createProfile = function() {
$modal.open({
windowClass: 'pillars-modal',
backdrop: true,
controller: 'createProfileModalCtrl',
templateUrl: 'lena_pillars/template/modal/createProfile.html' // магический шаблон
}).result.then(function (data) {
// ладушки
});
}
app.controller('createProfileModalCtrl', function($rootScope, $scope, $modalInstance, $resource, searchThemes, SettingProject) {
.....
}
$modal.open({
//....
templateUrl: 'lena_pillars/template/modal/createProfile.html'
//....
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question