Amitav Roy

Blog on web and travel

Laravel 4 Debug bar and Caching

Posted on 30 Jan 2014 by Amitav Roy

Caching of data is very important for any application and if we can save SQL queries, then it is always a bonus. In my last tutorial, I created the node object which was fetching its data from multiple tables and in different queries. In this tutorial I will cache the node object and save the SQL queries.

Working with XML in Angular JS

Posted on 4 Aug 2013 by Amitav Roy

In this tutorial I will show you how to use the X2JS javascript library to parse XML and turn that into an AngularJS object. This is one of my RND project where I am using XML files along with HTML to create an e-learning shell.

HTML5 local storage with Angular JS

Posted on 6 Jul 2013 by Amitav Roy

In this tutorial, I will use the HTML5 browser local storage along with Angular JS. This storage is very useful for making applications work in offline mode and quickly shift to online mode. This ensures that the application will work without fail even if the internet connectivity is not available.

Angular JS auto update factory sharedObject on database update

Posted on 10 Jun 2013 by Amitav Roy

Getting notifications about a new comment or new activity on Facebook without page reload, or even new mail notification on Gmail is a very important functionality to support the single page app. In this tutorial, I will show how we can call the Angular JS factory method at fixed intervals and update shared data if there is any change in the database.

AngularJS using factory method, post data and saving to DB

Posted on 19 Mar 2013 by Amitav Roy

In the last tutorial, I showed how we can use the factory method to share an object (in our case the list of books) and then we displayed those books in our view. The next step is to post data so that we can add another book to the database and that will also update the main listing. So, in this tutorial I will show you how to do that.

AngularJS using factory method and shared objects with broadcast

Posted on 16 Mar 2013 by Amitav Roy

My RND with Angular JS in recent time has increased so I thought it would be a good idea to share a few more Angular JS tutorials. In this tutorial, we will be using the factory method of Angular JS to centrally handle shared objects. Divided again in two parts – this one deals with getting the data and setting up the broadcasts.

Part 4 – Basic CRUD with Codeigniter

Posted on 3 Mar 2013 by Amitav Roy

In this fourth part of the series, we will implement a basic CRUD for Books. We will set up the controller to have a listing, edit and delete page. The model will do the database level activity and the views will show the listing form and the edit form also.

Part 3 Sending data from controller to views and partials

Posted on 17 Feb 2013 by Amitav Roy

In this tutorial, I will show how we can send data from the controller to the view and then into the partials which will then react to the data and do their work. The controller will decide which JS files to load in the footer template and also send the page title in the header template.