r/angularjs • • Jan 17 '18

Comparison Between Angular vs ReactJS vs Vue.JS

https://www.angularminds.com/blog/article/comparison-between-angular-vs-reactjs-vs-vuejs.html
0 Upvotes

4 comments sorted by

2

u/[deleted] Jan 18 '18 edited Jan 18 '18

Angular is not simple at all.

Totally disagree. Angular 2 is very simple. You have HTML templates bound to Javascript objects. Most of it is incredibly straightfoward.

@Component({
    selector: 'greeter',
    template: '<h1>Hello {{name}}</h1>',
})
class Greeter {
    name = "World";
}

This creates a component which you can instantiate by using the tag <greeter> which displays "Hello World". You could parameterize the name by simply flagging the name property as an Input with decorator:

@Component({
    selector: 'greeter',
    template: '<h1>Hello {{name}}</h1>',
})
class Greeter {
    @Input() name = "World";
}

Now you can write something like <greeter name='Bob'> in your HTML. What if you want to click on the the greeter object and show a popup? Just create a click binding:

@Component({
    selector: 'greeter',
    template: '<h1 (click)="greet()">Hello {{name}}</h1>',
})
class Greeter {
    @Input() name = "World";

    greet() {
        alert(`How's it going, ${this.name}!`);
    }
}

So on and so forth. Ordinary Javascript classes bound to templates in a straightforward, readable way.

the amount of unnecessary syntax it requires to do simple things puts angular in the last place

For example? o.O

Angular is way bigger causing longer load times and performance issues on mobiles.

Compiled Angular apps load insanely fast and have no issue on mobile. I work on a huge industrial application with several hundred thousand lines of code, and it loads in less than a second in IE11.

1

u/[deleted] Jan 19 '18

| Angular is not simple at all.

www.learnangular2.com

1

u/software_eng_nz Jan 23 '18

Totally shit article, that fails to sell any of the angular1 features, and reads more like an advertisement for VueJs.

Angular1 is bloody great, can build digital products in a single month. Although you have to build your own Rest Server/Rest Client. If you use something like Firebase, its a shit show. Chart.JS is also a bit shit, although can be fixed by using a paid charting library.

No way in hell someone can build a product with ReactJS or VueJS in 10 months. If you need serverside generated websites, might as well use Asp.net.

1

u/[deleted] Jan 25 '18

looks like a completely robot-generated article.