I was moving some of the HTML/Angular.js views from Umbraco 8 and trying to add them to a test Umbraco 11 project but when i run the custom section and click the menu item i receive an error.
I looked into the project directory and that path doesnt exist. As a matter of fact the Umbraco folder doesnt have any files under (well i see two which is Data and Logs).
Where or how could i reference the angular.js file? As far as i can tell Umbraco 11 still uses Angular for backoffice templates and MVC/Core Views are not supported?
When your developing (i.e. in VS) the umbraco files are served directly from the Umbraco dll's, however when you do a publish the files will be extracted to the umbraco folder.
I have similar issue in Umbraco 11. I have found that in IIS express any explicit reference to a js file in my master.cshtml razor template file needs to be located in the "CONTENT ROOT" directory above the wwwroot directory. Note: Smidge bundling takes js and css files from the wwwroot directory when referenced in the same razor template file . This is so inconsistent for development. Note: Change the html script src location from "/" to "~/" makes no difference. The 404 in development is only resolved when the file is placed in the "CONTENT ROOT" which is the directory above wwwroot and the folder of the umbraco application.
Please advise if you have found a way of referencing an explicit js file in a razor file that resolves to the wwwroot directory when developed in Visual Studio using default IIS Express web server.
Where are the angular.js files for Umbraco 11?
I was moving some of the HTML/Angular.js views from Umbraco 8 and trying to add them to a test Umbraco 11 project but when i run the custom section and click the menu item i receive an error.
Digging into the error i have the below listed
Could not load content for https://localhost:12345/umbraco/lib/angular/angular.js (HTTP error: status code 404, net::ERRHTTPRESPONSECODEFAILURE)
I looked into the project directory and that path doesnt exist. As a matter of fact the Umbraco folder doesnt have any files under (well i see two which is Data and Logs).
Where or how could i reference the angular.js file? As far as i can tell Umbraco 11 still uses Angular for backoffice templates and MVC/Core Views are not supported?
Hello I am also want to know about angular.js files.
Hi J,
When your developing (i.e. in VS) the umbraco files are served directly from the Umbraco dll's, however when you do a publish the files will be extracted to the umbraco folder.
The angular.js would be referred too from
Hello! How do I change the path?
have you found solution ?
Hi Vasyl,
Solution to what exactly?
The angular js should be refered to via
However during development you will not see this folder as it is served from the umbraco dll's
Hi Huw, "Could not load content for https://localhost:44362/umbraco/lib/angular/angular.js (HTTP error: status code 404, net::ERRHTTPRESPONSECODEFAILURE)" - I have this locally on iis express. Could I resolve it ?
It is angular.min.js
But it is not load file when I run it on iis express. I got error in console
What error do you get in the console?
I have similar issue in Umbraco 11. I have found that in IIS express any explicit reference to a js file in my master.cshtml razor template file needs to be located in the "CONTENT ROOT" directory above the wwwroot directory. Note: Smidge bundling takes js and css files from the wwwroot directory when referenced in the same razor template file . This is so inconsistent for development. Note: Change the html script src location from "/" to "~/" makes no difference. The 404 in development is only resolved when the file is placed in the "CONTENT ROOT" which is the directory above wwwroot and the folder of the umbraco application.
Please advise if you have found a way of referencing an explicit js file in a razor file that resolves to the wwwroot directory when developed in Visual Studio using default IIS Express web server.
is working on a reply...