javascript - Angular Get data from $http request gives undefined -
so, want data api (provided laravel). using $http in angular data, , when send forward view, works fine, when want use data inside controller, doesn't: html: <!doctype html> <html ng-app="todoapp"> <head> <script src="http://code.jquery.com/jquery-1.10.2.js"></script> <script src="http://code.jquery.com/ui/1.11.2/jquery-ui.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <script src="/js/maincontroller.js"></script> </head> <body ng-controller="maincontroller mycontrol"> <h1>todo-list:</h1> <div> <table> <tr> <th>note:...