$routeProvider is not able to access html template

Issue I have added both the files of angular.min.js and angular-route.min.js but still not working app.js code: var myApp = angular.module(‘myApp’,[ ‘ngRoute’, ‘artistControllers’ ]); myApp.config([‘$routeProvider’, function($routeProvider){ $routeProvider. when(‘/list’,{ templateUrl:’partials/list.html’, controller:’ListController’ }). otherwise({ redirectTo: ‘/list’ }); }]); controller.js code: var artistControllers

Continue reading

The controller with the name 'viewctrl' is not registered

Issue <div class=”wrapper” id=”body” ng-app=”masterview” ng-controller=”masterctrl” data-ng-init=”getmenus()”> <header id=”header”> <div class=”header-width row”> <div class=”col-xl-9″> <div class=”logo float-xs-left”> <a href=”#”> <img src=”~/img/logo_accord.png” alt=”Ace Report” /> </a> </div> </div> <div class=”col-xl-3 header-right”> <div class=”header-inner-right”> <div class=”float-default chat”> <div class=”right-icon”> <a href=”#”> <i

Continue reading

Single Page Application angularJS

Issue I was developing a sample application to learn AngularJs. There are three links that show up three different templates in the ng-view . main.html has the three links. $routeProvider.when(‘/add/:num’,{ templateUrl: ‘addition.html’, controller: ‘addCtrl’, requireLogin : true }) .when(‘/multiply/:num/’,{ templateUrl:

Continue reading

Single Page Application angularJS

Issue I was developing a sample application to learn AngularJs. There are three links that show up three different templates in the ng-view . main.html has the three links. $routeProvider.when(‘/add/:num’,{ templateUrl: ‘addition.html’, controller: ‘addCtrl’, requireLogin : true }) .when(‘/multiply/:num/’,{ templateUrl:

Continue reading

Angular ng-router not working

Issue I am learning angular-js and I am trying to use ng-route with ng-view.But somehow it is not working. App runs on nginx. My code is src/index.html <html lang=”en” ng-app=”demoApp”> <head> <!– Latest compiled and minified CSS –> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js”></script>

Continue reading