ASP.NET MVC- AngularJS Treeview

MVC application. AngularJS Treeview is a expandable node list that expand the child nodes whild selected. Compatible: Safari, Chrome, Firefox, Opera, IE8, IE9 and mobile browsers (Android, Chrome Mobile, iOS Safari) Clone: Use Git or checkout with SVN using the web URL.  Attri

C# (8.7 MB)
 
 
 
 
 
(0)
742 times
Add to favorites
7/4/2016
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

C#
(function () {

    //angular module
    var myApp = angular.module('myApp', ['angularTreeview']);

    //controller
    myApp.controller('myController', function ($scope, $http) {
        fetch();
        function fetch() {
            $http({
                method: 'GET',
                url: '/api/Roles'
            }).then(function successCallback(response) {
                console.log(response.data.objRole);
                $scope.roleList = response.data.objRole;
            }, function errorCallback(response) {
                console.log(response);
            });
        }
    });

})();