Created
December 2, 2013 09:49
-
-
Save anova/7747257 to your computer and use it in GitHub Desktop.
tacir.net te {% verbatim %} {% endverbatim %} kapalı olduğu için angular.js bind taglarını değiştirmek.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = angular.module('app', []).config(['$interpolateProvider', function ($interpolateProvider) { | |
$interpolateProvider.startSymbol('[['); | |
$interpolateProvider.endSymbol(']]'); | |
}]); | |
/* | |
use: | |
<div ng-app="app"> | |
<div ng-controller="ControllerCtrl as app"> | |
<ul> | |
<li ng-repeat="item in app.items"> | |
[[ item.property ]] <!-- instead of {{ item.property }} --> | |
</li> | |
</ul> | |
</div> | |
</div> | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment