CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • AngularJS?
Pages: [1]

Author Topic: AngularJS?  (Read 430 times)

lee.gooding

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 1
    • Clear River Church
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.7
  • PHP version: 5.3
AngularJS?
October 15, 2014, 06:54:44 am
I'm currently building my extensions primarily using jQuery to modify the DOM. However, I've recently been pointed (again) towards AngularJS. I've seen discussion regarding that replacing jQuery in Civi. Is that still the case? Is there any reason not to move to Angular when building my extensions?

There currently isn't any documentation showing the "correct" way to implement Angular into an extension. Any advice?

I've run some tests and can get angular working in TPL files by including the angular.js. Is it that simple?

Thanks!
« Last Edit: October 15, 2014, 07:05:02 am by lee.gooding »

JohnFF

  • I post frequently
  • ***
  • Posts: 235
  • Karma: 6
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.31-1
  • PHP version: 5.3.27
Re: AngularJS?
October 25, 2014, 05:32:24 pm
At the CiviSprint in Edale our team did some work on Angular JS - you can see an implementation in the GSoC project "A/B Testing".

My advice: stick with jQuery. The FF team extensions all use it. I doubt that all jQuery support will be removed in the future because it is just too useful.
If you like empowering charities in a free and open way, then you're going to love Civi.

Email Amender: https://civicrm.org/extensions/email-amender
UK Phone Validator: https://civicrm.org/extensions/uk-phone-number-validator
http://civifirst.com
https://twitter.com/civifirst

lee.gooding

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 1
    • Clear River Church
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.7
  • PHP version: 5.3
Re: AngularJS?
October 27, 2014, 06:41:19 am
JohnFF,

Thanks for the reply. I've had a volunteer attempting to convert one of our simple extensions to use Angular. I can see how it could simplify some things. However, there are so many great plugins for jQuery. It looks like I would have to "rebuild" a lot of them for Angular. At this point it seems to make sense to just wait until Angular is "officially" adopted and there is actual documentation regarding its implementation/use.

Thanks again.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • AngularJS?

This forum was archived on 2017-11-26.