크로스도메인 문제(다른 사이트의 ajax를 호출할 수 없는 브라우저의 보안정책)를 피하기 위해 JSONP라는 대안이 있는데 angular를 이용해 간단하게 목록을 가져오는 외부 호출을 만들어보자. http://docs.angularjs.org/api/ng.$http#jsonp 내용을 보고 참조하였다. index.html <!DOCTYPE html> <html ng-app > <head> <title></title> <script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.0.1/angular.min.js"></script> <script type="text/javascript" src="todo.js"></script> </head> <body> <div> <div ng-controller="listController" > <ul> <li ng-repeat="list in lists" > {{list.author}} </li> </ul> </div> </div> </body> </html> ng-app 을 설정하고 listController 에 lists 객체로부터 aut...
Meteor evangelist, IoT, Renoise, Lua, Javascript, Coffeescript