1

A lot of our web forms are done with AngularJS and combined with jQuery it does everything I need to satify the needs of people who are most impressed CSS transitions and have no technical knowledge whatsoever. I have no peers to ask this question.

I'm the only person deciding on what JS libs to use at the company... and since AngularJS goes into maintenance mode... what would you guys suggest to handle form input and add/remove CSS classes to HTML elements?

Should I get on the VUE bandwagon this year?

Comments
  • 0
    This sounds like vanilla JS in general, at least for handling css classes and submitting forms but it may require some redux-like way of storing form inputs?
  • 0
    Vue bandwagon kills all the need for jQuery! =)

    By the way, if somebody had to use jQuery with Angular, that's gotta be some trash project, I can wonder?
  • 0
    You should have gone angular2+ a long time ago.

    The new version of angular is night and day from the original, which I contributed heavily to. It has a lot of the same genetics, but improved dirty checking, unidirectional data and a significantly more robust compilation and chunking system that can result in small, lazily delivered applications. Also web components mode under elements.

    Forms have both a basic bind to field model and a reactive forms model that is flatly excellent due to its form event aggregation and granular access to data, as well as patch updates. It also hooks into anything that supports NgModel as a backing field binder.

    Vue is just an AngularJs clone.
  • 0
    @vintprox To be fair it's just me wanting the flexibility to shit out a simple animation that can't be handled with mere CSS transitions. Scroll-to-top kind of stuff.
  • 0
    @SortOfTested Anglar2 is something that starts out with installing Node.JS, dealing with NPM and command lines. Would perhaps work for an enterprise company but we shit out two sites a week that must be deployed to shared hosting providers. Not sure if Angular2 is a good fit.
  • 0
    @theuser Yeah, I could even do without JS where forms are concerned, it's more about the embellishments around such a form and how easy it is to do AJAX.
  • 0
    @Inxentas
    If you need to skip past boilerplate and skip to shipping software, it's ideal for that. Node builds on your local box and you ship static files. /Done

    It handles all the boilerplate for you. You just add components, routes and hit build
  • 0
    @SortOfTested Know what... I'll try it anyway. That sounds like I can still hook stuff up to a CMS locally and then deploy the whole thing to another server / database. But also like I have to learn 99 new things to even get it working :(
  • 0
    @SortOfTested Any good sources of where to actually begin? I installed NMP, installed Node.JS, but I have no idea how to proceed. The documentation of both sort of assume I want to write "scalable web apps". I just want to handle a form, can I find some info about that somewhere?
  • 0
    @Inxentas
    Read through "getting started" and "fundamentals" on the docs. Then read the section on angular elements.
  • 0
    @SortOfTested According to NPM I have to update Node.JS (installed it a while ago) to execute "ng new my-app"...

    So now I have to read up on how to update Node.JS first. Says here I can do that with NPM but when I try to install the N module I get an error and Googling that error says "not supported on Windows". I feel like murdering puppies now.

    Meanwhile, I made a new folder in my project and did...

    npm install vue
    npm install axios

    And it worked! Could start on the business logic side of things quite quickly. Thanks for pushing me in the right direction, even though it's unlikely I'm going to use Angular at least I am getting my old brain around NPM :)
  • 0
    @Inxentas
    You should consider installing nvm. It'll let you jump between different versions of node. Useful when working on projects of varying age.
  • 0
    Just looked it up. Never used Curl outside of PHP and don't know Wget. Yet more ways to install stuff. I'm the dude that downloaded Zend once a year from the website :D

    I've been tinkering with VUE and I must say my initial impressions are quite good. Setting it up with NPM wasn't so bad as I thought, and I'm already reading out form elements.
Add Comment