Skip to content

Instantly share code, notes, and snippets.

@monkeymonk
Last active January 3, 2016 13:38
Show Gist options
  • Save monkeymonk/8470397 to your computer and use it in GitHub Desktop.
Save monkeymonk/8470397 to your computer and use it in GitHub Desktop.
How to use AngularJS and Laravel Blade together.
var customInterpolationApp = angular.module('customInterpolationApp', []);
customInterpolationApp.config(function($interpolateProvider) {
$interpolateProvider.startSymbol('<%');
$interpolateProvider.endSymbol('%>');
});
<?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