Angular JS 1.x http interceptors

By teamprinceton | April 4, 2018 |

Angular js 1.x provides the $http service to allow the client side to communicate with the backed using HTTP requests. For most complex usages it is often necessary to do some processing with the requests/responses before they reach our controllers. For example, one might be looking to implement a global error handler that displays a … Continue reading “Angular JS 1.x http interceptors”

Read More

AngularJS – ng-repeat and Radio Buttons

By teamprinceton | July 22, 2016 |

AngularJS – ng-repeat and Radio Buttons I recently had this problem where I had to select an item from a table. Nothing much, but I avoided buttons for this task and instead used a radio button against each row: where $scope.users = [{“userId”: 1, “firstName”: “a”,“lastName”:“b”}, {“userId”: 2, “firstName”: “c”,“lastName”:“d”}, {“userId”: 3, “firstName”: “e”,“lastName”:“f”}]; and … Continue reading “AngularJS – ng-repeat and Radio Buttons”

Read More

AngularJS timeout and interval services

By teamprinceton | April 9, 2016 |

It is not always required of our functions to provide immediate results, sometimes we need to delay the changes made by a function, for eg, processing of an AJAX request or if we want to schedule changes to an animation. To such end AngularJS provides us with $timeout( ) and $interval( ) services. To use … Continue reading “AngularJS timeout and interval services”

Read More

Dynamic file input – teaching html some new tricks

By teamprinceton | February 8, 2016 |

Okay, now this post might come across as a bit of a rant but could be of real use to people who are looking to implement a custom file upload widget. Lets face it, the default file input container provided by HTML is not what we’d describe as eye-candy and to top it off each … Continue reading “Dynamic file input – teaching html some new tricks”

Read More

Communicating between controllers in AngularJS

By teamprinceton | December 1, 2015 |

AngularJS is what HTML would have been, had it been designed for building web-apps. is what we see on the AngularJS homepage, and with the features that it provides, it lives up to those words. But learning Angular, if you have not faced some problem or odd behavior with scopes there’s a pretty good chance … Continue reading “Communicating between controllers in AngularJS”

Read More

Front-end Configuration of an existing AngularJS App in Liferay portlet

By dwaprince | October 21, 2015 |

The primary tasks are – creation of view.jsp and configuration ofliferayportletaccordingly. • An example Angular application written in index.html Name : Hello {{name}}   • To convert this – create view.jsp as below <%@ tagliburi=”″ prefix=”portlet”%> Name : Hello {{name}} • Include js and cssfiles in WEB-INF/liferay-portlet.xml app-portlet /css/style.css /js/angular.min.js • Configure the app for … Continue reading “Front-end Configuration of an existing AngularJS App in Liferay portlet”

Read More

Hello World!

By Ravi Karamsetty | |

Hi guys, if like me you’re a newbie to Angular JS and you’re trawling through the internet to find comprehensive materials to understand Angular and not just lose your mind sifting through the documentation so the beginning can make sense, I hope I’m able to help you save some precious time there and organize some … Continue reading “Hello World!”

Read More