python - Angular.js and Genshi - conflicts using $ -


hi i'm writing webapp using python, turbogears 2.2, , genshi view\templates.

on view side, i'm using angular.js. of time work together. problem – when want use stuff $index inside ng-repeat cannot. when try doing that, genshi.template.eval.undefinederror

here html code demonstrate:

  <html xmlns="http://www.w3.org/1999/xhtml"   xmlns:py="http://genshi.edgewall.org/"   xmlns:xi="http://www.w3.org/2001/xinclude" ng-app="orderitemeditapp">  ... code ...  <tr ngrepeat="item in items">     <td>{{$index}}</td>  .... 

is there way use $index (or other stuff) genshi , angular.js? help

use double dollar signs in genshi template escaping:

<td>{{$$index}}</td> 

will output:

<td>{{$index}}</td> 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -