Skip to content

Instantly share code, notes, and snippets.

@anova
Created December 2, 2013 09:49
Show Gist options
  • Save anova/7747257 to your computer and use it in GitHub Desktop.
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.
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