Amitav Roy

Blog on web and travel

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.

Ajax data using Angular JS http and use $route service inside Codeigniter framework

Posted on 6 Nov 2012 by Amitav Roy

This is my second tutorial on Angular JS. In this tutorial I will show you how to get ajax data using Angular JS http service and how to use $route service – a very powerful and sleek feature where you can define multiple pages inside a single page, load different content without refreshing the page. Similar to how in gmail we can look at different mails without refreshing the page.

Single page app Angular JS $http inside Code Igniter using Twitter Bootstrap

Posted on 27 Sept 2012 by Amitav Roy

Angular JS is picking up a lot of appreciation for its powerful features. A javascript framework which makes HTML smarter. Following a MVC patter, this framework can not only reduce a hell lot of java script code in your application, but also give an very powerful user experience. In this tutorial, I will explain, how we can use Angular JS $http to get ajax data in JSON format and then quickly use that in our application inside Codeigniter environment using Bootstrap.

Creating Drupal forms, tabs and vertical tabs using Form API

Posted on 6 Aug 2012 by Amitav Roy

Sites are easy to create using Drupal CMS. But giving nice forms which client can use and set different things on the site will really make our life a lot easy. In this tutorial, I will show how we would use the Forms API and Vertical tabs to create pages in the admin section.

A quick trip to Sinhagad

Posted on 30 Jul 2012 by Amitav Roy

A sudden plan to Sinhagad near Pune – an amazing destination for a single day trip. A place full of for and lush green mountains, it’s a must nature lovers and trekkers.