by XTIVIA | May 29, 2015 | Applications, Blog, Enterprise Java, Portals
AngularJS is a great framework for Single Page Applications (SPAs) – it’s easy to learn and use. There’s no reason not to (and actually every reason to) create your Liferay portlets as AngularJS SPAs. Our organization considers...
by XTIVIA | May 6, 2015 | Applications, Blog, Enterprise Java, Perspectives, Portals
Should we use AngularJS? Should we use it now? In light of the announcement by the AngularJS team to release AngularJS 2.0 as a total rewrite, it is a valid question to ask: Should we build new applications on AngularJS 1.x? And given that 2.x is not...
by Abdul Alshberi | Mar 5, 2015 | Blog, Enterprise Infrastructure, Portals
Scopes in AngularJS define where every variable is visible and where it’s not. Scopes are hierarchical, where every parent scope is visible in the child scope but not the other way around. $rootscope is the highest scope that is seen by all the controllers. Be...
by Abdul Alshberi | Mar 4, 2015 | Blog, Enterprise Java
What is Phonegap? If you don’t already know, Phonegap is a cross platform framework that uses HTML5, JavaScript and CSS to build mobile applications. Phonegap is a distribution of Apache Cordova (for all the gory details, see here). Apache Cordova is the technology...
by Abdul Alshberi | Mar 3, 2015 | Blog, Enterprise Java
Why Custom Filters? Filters in AngularJS are mainly used for display purposes – to show a text in a specific way or to filter an array based on a certain pattern. We’ll see examples for both cases. Single value display filter Let’s assume that I need to display...
by XTIVIA | Jan 21, 2015 | Blog, Portals
We had a requirement in an AngularJS portlet to make jQuery DataTable columns dynamic. Normally, DataTable fetches a JSON object that contains the headers and uses that object to instantiate the DataTable. Doing it the Angular way is a bit different. The...
by XTIVIA | Jan 12, 2015 | Blog, Enterprise Infrastructure, Portals
Before we dive immediately to the code, I just want to point a subtle difference in the example code that Ionic has here. I am using ng-init to call the initialize method rather than having it in the controller. I also declared the initialize function in the scope....
by XTIVIA | Jan 9, 2015 | Blog, Enterprise Java
Introduction Ionic is an HTML5 SDK for mobile applications using Apache Cordova, allowing developers to code in HTML, Javascript, and CSS. Ionic provides out-of-the-box components for even faster development. Environment Setup For this setup, we will be configuring a...