Vue.js is an excellent front end library that focuses on the ViewModel and makes it easy to get up and running with single page apps. It’s heavily influenced by AngularJS, so using Vue feels quite natural if you come from an Angular background. One of the nice things about Vue is that you don’t have to worry about the overhead that can often come with setting up an Angular app, but you still get the tools to make awesome single page apps.
In this article I wrote for Auth0, we explore how to setup a basic Aurelia app that calls a NodeJS API for authentication and data. This example will be useful if you’re looking to get started with your first Aurelia app.
This post is a continuation of the Token-Based Authentication for AngularJS and Laravel Apps tutorial on Scotch.io. If you haven’t read it yet, head over there and take a look before continuing with this one.
Where We Left Off
In the tutorial on Scotch.io we created a new app called jot-bot to look at how to implement token-based authentication in AngularJS and Laravel by using jwt-auth and Satellizer together. On the Laravel side, jwt-auth let’s us generate JSON web tokens when […]
Have you ever created a form in AngularJS and been frustrated with how bloated your HTML was? Putting lots of Angular attributes on our HTML tags can make things get big quickly and can lead to a mess of markup.
To show you how to use angular-formly, I’ve written an […]
Creating a Complex Custom Filter
AngularJS filters are awesome for modifying the output of data as it is being displayed in the view and Angular comes with many of these filters built-in with the framework. For example, with the currency filter we can easily display numeric values with a dollar sign and two decimal places and with date we can format dates and times however we like. The built-in filters are great, but what if we want to make a custom […]
In the second of this two-part series I did for Scotch.io, we’ll finish out our time tracker app by setting up the Laravel backend and adjusting our Angular code to make use of the RESTful API we create with Laravel.
Build a Time Tracker with Laravel 5 and AngularJS – Part 2
In the first of this two-part series I did for Scotch.io, we’ll setup an AngularJS front-end for an Laravel + Angular time tracker app.
Build a Time Tracker with Laravel 5 and AngularJS – Part 1
Using AngularJS Services
While AngularJS certainly is an opinionated framework, it also gives developers a lot of freedom when it comes to application architecture. In many cases this can be a positive thing, but it can also lead to applications getting built in ways that aren’t the most maintainable.
One area this freedom of architecture often shows up is in the controller. When starting out with Angular, it can be tempting to put all bits of logic directly into the controller, especially […]
Using a PUT Request to Update Records
Using a PUT request to update a record in a database can be tricky when you only want to update the value for a specific field. By default, the PUT request will override the entire entry, and this is often undesirable. Support for PATCH (used to update a specific field in a record) is increasing, but for various reasons, using it is not always an option. For those times when you need to use […]
Part 2 – Setting Up the Back-End for our AngularJS and Laravel Typeahead
Now that we’ve got our front-end in place for our typeahead input, let’s work on retrieving data from a database instead of just from a static JSON file on disk. For the back-end we’ll be using Laravel 4.2 with a MySQL database.
Get the code on GitHub
This tutorial will assume a basic working knowledge of Laravel, so if you’re brand new to the framework, it’s worth getting familiar […]