I am new to AngularJS and facing this strage issue

I have the following code. Everything is working fine just 
 {{item.action}} & {{item.done}} are not getting populated and returning 

I checked the debug and item is have 4 array elements

Please help


<!DOCTYPE html>
<html ng-app="demo">
<title>Promise Example</title>
<script src = "angular.js"></script>
<link href="bootstrap.css" rel="stylesheet" />
    <link href="bootstrap-theme.css" rel="stylesheet" />
    <script type="text/javascript">

    var myapp = angular.module("demo", []);
    myapp.controller("newAppCtrl", function($scope, $http){
    var promise=$http.get("todo.json");
    console.log("data = "+$scope.todos);
<body ng-controller = "newAppCtrl">

<div class="panel">
ToDo List

<table class="table">

<tr ng-repeat="item in todos">
<td> {{item.action}} </td>
<td> {{item.done}} </td>


You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to