and it works.

links that helped:
http://jsfiddle.net/Bvc62/3/
http://stackoverflow.com/questions/12923521/angular-js-custom-delimiter


This would be your view
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Angular demo</title>
  <script type='text/javascript' 
src='https://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.js'></script>
<script type='text/javascript'>//<![CDATA[ 

var myApp = angular.module('myApp', [], function($interpolateProvider) {
    $interpolateProvider.startSymbol('[[');
    $interpolateProvider.endSymbol(']]');
});

function MyCtrl($scope) {
    $scope.name = 'Superhero';
}
//]]>  
</script>

</head>
<body ng-app="myApp">
  <div ng-controller="MyCtrl">
    Hello, [[name]]
</div>
</body></html>




Am Dienstag, 29. Januar 2013 21:10:04 UTC+1 schrieb Dirk Krause:
>
> I have to apologize for my stupid question.
>
> Of course web2py *does* deliver raw html. But AngularJS uses the same 
> brackets convention as web2py - that's what caused the conflict (I should 
> write a book: 'The Art of Reading Error Messages' ... *facepalm*)
>
> There seems to be a workaround, since you can change the markup in angular 
> according to this:
>
> http://stackoverflow.com/questions/8302928/angularjs-with-django-conflicting-template-tags
>
> I'll try this next.
>
> Am Dienstag, 29. Januar 2013 17:12:30 UTC+1 schrieb Dirk Krause:
>>
>> Hi,
>>
>> I am trying to use web2py to manage a database and display the resulting 
>> JSON in AngularJS.  To render an angular compatible view I need to pass raw 
>> html in a view (for example the html needs to start with '<html ng-app>' 
>> and so forth). Of course I could place the files in the static folder, but 
>> then I can't protect the files via @auth.requires_login() etc.
>>
>> What would be the best way to achieve that?
>>
>> Thank you,
>>   Dirk
>>
>

-- 

--- 
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/groups/opt_out.


Reply via email to