Here my MVC controller
- public ActionResult Index()
- {
- return View();
- }
- public ActionResult home()
- {
- return PartialView();
- }
- "viewport" content="width=device-width" />
-
Index - "myApp">
-
- var app = angular.module("myApp", ["ngRoute"])
- app.config(["$routeProvider", "$locationProvider", function ($routeProvider, $locationProvider) {
- $routeProvider.when('/home', {
- templateUrl: 'Home/home',
- controller: 'homecontroller'
- })
- .controller("homecontroller", function ($scope, $location) {
- $scope.message = "home controller";
- $scope.Name = "Junaid";
- })
- @{
- Layout = null;
- }
{{message}}
- "text" ng-model="Name" />
home page
If Iam wrong please correct me.Thnak you...

Junaid SyedPosted Sep 6, 2017, 4:32 AM
Hamid KhanPosted Sep 6, 2017, 3:33 AM
Hamid KhanPosted Sep 6, 2017, 3:30 AM