These are chat archives for filearts/plunker

2nd
Sep 2017
Jaime Lucas Cadle
@cadlejl
Sep 02 2017 16:01
When I click the button to add the angular package to my plunk it doesn't work. Is anyone else having this problem? Is there another way to do it?
Afrina Adlyna
@afrinaad
Sep 02 2017 18:24
can anyone help me how to access to certain level of parents node in force directed layout?
sayedramin
@sayedramin
Sep 02 2017 20:38
I am looking for help to get SharePoint list data into $scope variable of angular
here is my code
var myAngApp = angular.module('SharePointAngApp', []);  
myAngApp.controller('spCustomerController', function ($scope, $http) {  
    $http({  
        method: 'GET',  
        url: http://localhost/sites/portal.af/_api/web/lists/GetByTitle('Film')/Items?$select=FilmName,FilmReleaseDate,  
        headers: { "Accept": "application/json;odata=verbose" }  
    }).success(function (data, status, headers, config) {  
        $scope.Items = data.d.results;  
    }).error(function (data, status, headers, config) {  

    });  
});  
over all code
<html>
<head>
<style>

th {
background-color: green;
color: white;
}
</style>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.1/angular.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://sp/sites/portal.af/JavaScripts/angular.min.js"></script>

</head>

<script type="text/jscript">


var myAngApp = angular.module('SharePointAngApp', []);
myAngApp.controller('spCustomerController', function ($scope, $http) {
$http({
method: 'GET',
url: http://localhost/sites/portal.af/_api/web/lists/GetByTitle('Film')/Items?$select=FilmName,FilmReleaseDate,
headers: { "Accept": "application/json;odata=verbose" }
}).success(function (data, status, headers, config) {
$scope.Items = data.d.results;
}).error(function (data, status, headers, config) {

});
});


</script>

<h1> Angular JS SharePoint 2016 REST API !!</h1>

<div ng-app="SharePointAngApp" class="row">
<div ng-controller="spCustomerController" class="span10">
<table class="table table-condensed table-hover">
<tr>
<th>FilmName</th>
<th>FilmReleaseDate</th>
</tr>
<tr ng-repeat="Items in Items">
<td>{{Items.FilmName}}</td>
<td>{{Items.FilmReleaseDate}}</td>
</tr>
</table>
</div>
</div>

</html>