Laravel Blade and Angular brackets
Angular History Based BreadCrumbs
Originally I was going to go with one of the more well known packages but then I realized I wanted to show the history of the users states not the children of the state they are on. For example when the user lands on the website at say the path projects and then goes to projects/foo their breadcrumbs will look like this Projects / Project Foo And if they then go to project/foo/reports then it would be
Embed Template Data in View (Angular, Laravel)
Sometimes, when your frontend shares the same view rendering of the backend, you can store data in the window object. This can save you queries to the backend when, for example, Profile Data that shows on every pages request. Embed output into window or $window In the Controller I am using to output the Angular template (app/views/main.blade.php for example) I inject the window data that I want all pages to have.
CSRF Tokens and Angular.js
This is key to preventing Cross-site request forgery. Basically you log in and do some work on one site, then go to a malicious site and now they can send POST requests to the sites you have authentication to. But by passing a token we can prevent that issue. The steps Make a token path Make a token service to use again and again in Angular.js Add it as a resolve to the route in Angular.