@{ Layout = null; } <div > <h2>{{Headtitle}}</h2> <p> <div style="width:200px;">MainMenuId :</div> <input type="text" name="MainMenuId" id="MainMenuId" data-ng-model="MainMenuId" /> </p> <p> <div style="width:200px;">MainMenu :</div> <input type="text" name="MainMenu" id="MainMenu" data-ng-model="MainMenu" /> </p> <p> <div style="width:200px;">PageTitle :</div> <input type="text" name="PageTitle" id="PageTitle" data-ng-model="PageTitle" /> </p> <input type="button" name="btnSave" id="btnSave" value="Save" ng-click="Save()" />
<div data-ng-app="MainMenuModule"> <div data-ng-controller="MainMenuController"> <div data-ng-include="'MainMenuCreate'" > </div> {{MainMenuId}} </div> </div>
app.controller('MainMenuController', function ($scope, MainMenuService) { $scope.Save = function () { var MainMenuRecord = { MainMenuId: $scope.MainMenuId, MainMenu: $scope.MainMenu, PageTitle: $scope.PageTitle, pe.HomePanelStatus, PageId: $scope.PageId }; var promisePost = MainMenuService.post(MainMenuRecord); promisePost.then(function (pl) { $scope.MainMenu = pl.data.MainMenu; loadRecords(); }, function (err) { console.log("Err" + err); }); } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)