D
D
devapricot2018-08-11 19:03:26
Angular
devapricot, 2018-08-11 19:03:26

What should I do to make VS listen to me?

I am writing a project in ASP.NET + AngualrJS in the studio 2017 and added a controller to the view as follows:

<div ng-controller="questionController">
                {{2+2}}
            </div>

Further in js'e I wrote the following lines:
var myApp = angular.module('myApp', []);
    function questionController($scope) {
$scope.test = "test";
    }

As a result, when I compile and run the project, it loads the old js file for me, where this controller does not exist and, accordingly, writes in the Google console that
angular.js:15019 Error: [$controller:ctrlreg] The controller with the name 'questionController' is not registered

What does she want? For the test, I did the same actions in a regular html file on the desktop and everything works, well, it’s understandable because html loads what I tell it to me. But the studio loads what it wants.
Studio restarted. does not load the modified js file from both kestrel and IIS Express.
I do not know what to do, it does not load the changed js files for me.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question