by XTIVIA | Sep 4, 2015 | Applications, Blog, Portals
At XTIVIA, we have been building enterprise AngularJS applications for more than a couple of years now, particularly on top of Liferay. We think AngularJS 1.x is production ready. This, in fact, gave birth to our homegrown Liferay-based REST services...
by XTIVIA | Sep 2, 2015 | Applications, Blog, Enterprise Java, Portals
AngularJS has been around for some time and has proven itself to be a framework that is here to stay. While there is a lot of promise (pun intended!) and speculation around the AngularJS 2.0 release, the 1.x releases have stabilized quite a bit. Checkout this blog...
by Asier Del Pozo | Aug 22, 2015 | Blog, Enterprise Java, Portals
Sometimes we need a mobile app to be internationalized when we use AngularJS. AngularJS supports i18n/l10n for date, number and currency filters. If we want to change something as simple as a literal, we will have to do something else. To do this there are...
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 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....