4

Should I learn Angular 2 or Vue 2?

Not asking which one is better, but which one suits my need better:

I want to move from PHP to nodejs frameworks; I know Vue cause it's famous in the Laravel community, but don't know about the node/js community. I heard Angular 2 is hard, but I'm changing my dev stack so might as invest some time in it. So which one should I pick?

Also, what's a good nodejs framework for starters (who aim to build production-ready apps) (also, not planning on doing mobile apps so no need for cross platform js frameworks).

Thanks in advance

Comments
  • 0
    The key is in what kind of data you are going to be working with. What was your PHP eating before? If you are switching your whole stack, what are you going to use for the 'server' and what are you going to use for the 'front-end.' Express for a server? Or Go? Rails? Vue.js is similar to react in that it does targeted things really well. If you were building a site that does a few things really really well on it's own, or trying to get some snappy stuff nested in a giant PHP site - you could stick some vue in it.
  • 0
    If you need a fully fledged router and conventions for a big app that does lots of things - then the question is Angular 2 or Ember. Angular just had a rewrite - and so it's new/different than angular 1.5. Ember moves forward and changes but just little bits at as time as the framework learns from itself. You're never going to get a complete rewrite with no upgrade path. If you hate yourself and other developers who may have to work on your projects later, don't use Ember... but otherwise, learn Ember. Every Angular project I work on looks completely different. Every Ember project is almost immediately readable because of strong conventions. Ember has a great community - and I'm sure Angular 2 is wonderful too - but you are weighing a new lifestyle and not just a brand-name.
  • 0
    I master angularjs, working on angular (2) at the moment and i really enjoy it.
    Now...I don't know vue but I've heard great things. Often hear that is simple. If your not familiar with spa, maybe you should try vue.
  • 0
    @sheriffderek Good points you mentioned, thank you very much.

    I think I havn't thought that far so let's decide based on a simpler premise:

    If I wanna get a job as a nodejs developer, which one should I know? (note, this is specifically because I would'nt be "deciding" which one to use, but rather using whichever the industry uses the most)

    In other words, I just want to drop PHP and get a job as a nodejs dev. But since this isn't a side-project or anything, I wanna know what the industry uses more
  • 0
    Well, if your looking at the market, why not react?
  • 2
    @rephiscorth Well, Angular 2 just happened... so - is there even a large-scale public app in use? I don't know. As far as a 'node.js' developer, you'll have to decide what that means at some point. I don't know what that would mean. Someone comfortable with node? I know a bunch of 'node' people who don't use any frameworks and create special super confusing application with unique view layers - or things like node-packages to bundle up files etc. Most people I know use node in drastically different ways. Some write Express or Hapi servers and that's all. Generally, it sounds like you just really need to master JavaScript. Node is just JavaScript in a slightly different environment than the expected browser situation. People who like Java will be adopting Angular 2 because it seeks to mimic types and classes. Most people from Rails will go with Ember. So the answer *learn JavaScript.* Try https://nodeschool.io/ (free) and it'll start you right in the command line.
  • 0
    You'll need a strong understanding of JavaScript to get the most out of any framework. DO build some practice things in each. I really like my https://frontendmasters.com/ subscription.
  • 1
    hate to say this but i feel alot better after switching to react from angular after 2 years
  • 1
    I used angular 1.x and then switch to react instead of angular 2.

    Using react+redux+flowtype+eslint makes managing big projects fairly simple.

    I am now looking at vuejs mainly because of how react is licensed, BSD+Patney.

    I think the job market currently mainly goes to angular and react, but it might slowly shift away from react because if the license restrictions. I would be betting on vue out of these, because it's seems easier to pick up than angular 2 allowing for an easier transition of new team members.
  • 0
    I've worked with Ember, both Angulars, React and others. Of all of these, I find React (license notwithstanding) the easiest to use. Ember seemed massively over-engineered, like Angular 1.x

    Fir the rest of the stack, if you're starting out in "things on top of Node", have a look at Meteor, its dead easy to get started and supports all the major view-layer frameworks.
  • 0
    Vue is going going to be the next big thing in market. We had heard good things about Vue earlier, but, didn't bother to try it out. But in one of the projects client was particular on Vue.js. After initial R&D, I was in love with Vue. I'm disappointed that I wasted nearly 2 years around the Angular(2+) hype and build up.

    You have to use Vue to understand the power of Vue!

    Angular 2 will survive as the big empty think tanks will promote something backed up Google. But you wont be interested in an application that breaks after 2 months!
  • 0
    @sheriffderek He asked about Vue, not Ember
Add Comment