Last active
January 3, 2016 13:38
-
-
Save monkeymonk/8470397 to your computer and use it in GitHub Desktop.
How to use AngularJS and Laravel Blade together.
This file contains hidden or 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 customInterpolationApp = angular.module('customInterpolationApp', []); | |
customInterpolationApp.config(function($interpolateProvider) { | |
$interpolateProvider.startSymbol('<%'); | |
$interpolateProvider.endSymbol('%>'); | |
}); |
This file contains hidden or 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
<?php | |
// in `app/start/global.php` | |
Blade::setEscapedContentTags('<%', '%>'); | |
Blade::setContentTags('<%=', '=%>'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment