{"id":12585,"date":"2014-03-31T15:15:23","date_gmt":"2014-03-31T09:45:23","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=12585"},"modified":"2017-08-03T16:01:56","modified_gmt":"2017-08-03T10:31:56","slug":"using-angularjs-with-grails-app-my-first-impression","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/using-angularjs-with-grails-app-my-first-impression\/","title":{"rendered":"Using AngularJS with Grails app&#8230; my first impression"},"content":{"rendered":"<p dir=\"ltr\">In my current grails application, we have <a title=\"Angular Development\" href=\"http:\/\/www.tothenew.com\/front-end-angularjs-development\">started using the AngularJS<\/a> after realizing that the GSP template engine is a bit slow. Now, I realize how efficient AngularJS\u00a0can be, and think of sharing my first impressions while using AngularJS\u00a0with grails app. Following are some of the reasons, that I find, makes AngularJS\u00a0stands out:<\/p>\n<ol>\n<li>\n<p dir=\"ltr\">The aim of <a title=\"Building Intuitive Frontend Interfaces with AngularJS\" href=\"http:\/\/www.tothenew.com\/blog\/building-intuitive-frontend-interfaces-with-angularjs\/\">AngularJS\u00a0to develop single page applications<\/a> makes it really fast and efficient.<\/p>\n<\/li>\n<li>\n<p dir=\"ltr\">We are able to save the compilation time of the gsp pages, as we use just plain html pages. Angular also caches these html pages, thereby, making the rendering even more faster.<\/p>\n<\/li>\n<li>\n<p dir=\"ltr\">Besides providing a lot of predefined directives, we can also create our own directives. This makes it more powerful, testable, clean and easier to maintain.<\/p>\n<\/li>\n<li>\n<p dir=\"ltr\">Two way binding saves a lot of time, effort and extra javascript code. We can do without using the costly iteration of the DOM elements. One such case is when we use the inbuilt validation framework. The validation messages could easily be shown while the user keys in his input.<\/p>\n<\/li>\n<li>\n<p dir=\"ltr\">MVC pattern ensures less coupling between the presentation, data and logic components. Thus, making the javascript code easily testable.<\/p>\n<\/li>\n<li>Filters are very powerful to filter out existing data in the view layer. In addition to many predefined filters, we can also create our custom filters.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>In my current grails application, we have started using the AngularJS after realizing that the GSP template engine is a bit slow. Now, I realize how efficient AngularJS\u00a0can be, and think of sharing my first impressions while using AngularJS\u00a0with grails app. Following are some of the reasons, that I find, makes AngularJS\u00a0stands out: The aim [&hellip;]<\/p>\n","protected":false},"author":113,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":8},"categories":[7],"tags":[3955,955,4697,4840,32],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/12585"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/113"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=12585"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/12585\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=12585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=12585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=12585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}