Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
theuser47814yThis 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?
-
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? -
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. -
Inxentas7894y@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.
-
Inxentas7894y@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.
-
Inxentas7894y@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.
-
@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 -
Inxentas7894y@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 :(
-
Inxentas7894y@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?
-
@Inxentas
Read through "getting started" and "fundamentals" on the docs. Then read the section on angular elements. -
Inxentas7894y@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 :) -
@Inxentas
You should consider installing nvm. It'll let you jump between different versions of node. Useful when working on projects of varying age. -
Inxentas7894yJust 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.
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?
question