I've tried this type of view (default/index.html):
<!doctype html>
<html ng-app>
<head>
<script src="{{=URL('static','js/angular.js')}}"></script>
</head>
<div ng-app="myApp" ng-controller="testCtrl">
[[ myData.id ]]
</div>

<script>
var app = angular.module('myApp', []);
app.controller('testCtrl',function($scope,$http){
    $http.get("http://127.0.0.1:8000/api/test/10";).then(function(response){
        $scope.myData = response.data.row
    });
});
</script>
</html>

But i'm getting just [[ myData.id ]] in my browser.

The output when I'm calling http://127.0.0.1:8000/api/test/10 with browser 
is:
{"row": {"test": "my test string", "id": 10}}

changes on angular.js in function $InterpolateProvider():
var startSymbol = '[[';
var endSymbol = ']]';


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to