I am having trouble finding a tutorial using asp net core with Angular 1 without using Razor. (I just want to use html) int the web project with a web api solution that will get the requests.
I have been trying to make it work but for some reason i can't get the UI router to work:
like if i do http://localhost:12112/index.html
it would show the page correcty but when i do `http://localhost:12112/home which is what i want.. it says it can't find it.
My folder structure is:
wwwroot
-app
-home
-myhome.controller.js
-myhome.module.js
-myhome.router.js
-myhome.html
-index.html
myhome.router.js
(function () {
'use strict';
angular
.module('hoa.myhome')
.config(routeConfig);
routeConfig.$inject = ['$stateProvider', '$urlRouterProvider']
function routeConfig($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/');
$stateProvider
.state('home', {
url: '/',
templateUrl: '/app/home/myhome.html'),
controller: 'myHomeController',
controllerAs: 'myhctrl'
})
};
})();
what could i be missing?, or if you could point me to a good tutorial using angular without razor and .net core i would appreciate it.