R
R
RodgerFox2015-11-13 17:51:19
Angular
RodgerFox, 2015-11-13 17:51:19

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) {
            // ладушки
        });
    }

createProfileModalCtrl controller :
app.controller('createProfileModalCtrl', function($rootScope, $scope, $modalInstance, $resource, searchThemes, SettingProject) {
.....
}

If you change the path to the template in the pop window call settings:
$modal.open({
//....
  templateUrl: 'lena_pillars/template/modal/createProfile.html' 
//....
}

we get a 404 error.
Nowhere is there anything about the old template, where can he get the information from?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Protko, 2015-11-13
@RodgerFox

in the dev panel in the options you put Disable cache?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question