How to use AngularJS and Laravel Blade together.


/ Published in: JavaScript
Save to your folder(s)

In this article I will show you how to use AngularJS and Laravel Blade together.
People who have been using AngularJS for a while may know of this solution. However if you are just getting started or have never used Angular with a templating engine like Blade, read ahead!


Copy this code and paste it in your HTML
  1. var customInterpolationApp = angular.module('customInterpolationApp', []);
  2.  
  3. customInterpolationApp.config(function($interpolateProvider) {
  4. $interpolateProvider.startSymbol('%%');
  5. $interpolateProvider.endSymbol('%%');
  6. });

URL: http://creative-punch.net/2014/01/use-angularjs-laravel-blade-together/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.