Why would I need Angular if I use Meteor ?

Why would I need Angular if I use Meteor ?

Asked on November 15, 2018 in Meteor.
Add Comment

  • 2 Answer(s)

    Here is the solution:

    • There are slight differences in the two. The most apparent to everyday work would be the binding.
    • In Meteor its a bit like having Angular but without this binding, since you have to manually do it. If you use angular it can bind to your html automatically, then Meteor can take this one step further and push it to the server and to everyone else.
    • Meteor does have testing too but its unofficial. You would have to install packages off atmosphere.meteor.com to use this extra functionality. There’s lots of other stuff on there too.
    • One thing to keep in mind is Meteor has a new Templating engine in the works called Meteor-UI which addresses a lot of the concerns which the current implementation which angular has a leg up on. The main one would be DOM isolation. More details on it here: https://github.com/meteor/meteor/wiki/New-Template-Engine-Preview
    • The new Meteor-UI template engine actually goes a step further than angular since a new concept of ‘controls’ are introduced. This means you can add a textbox in with handlebars-esque like code and have it automatically bind to events and to the backend, with validation.
    • With localization there is a package on atmosphere that helps a bit with that. You can use handlebars placeholders and replace them depending on the language you intend to display.
    • It also depends on your preference, if you’re comfortable with using Angular, it can create beautiful apps that feel very native. Meteor also does this in a different way, at the moment it does take a bit more work because of the binding but it would change in the next month or two because of Meteor-UI.

    Explain the reasons we use Meteor because that wasn’t your question (although I love talking about how great Meteor is every chance I’ve got) so I’ll just talk about Angular:

    1.Declarative approach – AngularJS is the leader in the declarative approach of Javascript frameworks. as we are working close with a lot of designers we can see how easy it is for them to understand to code. also getting new programmers into our team in much easier with AngularJS.

    2.Huge and great eco-system – Angular’s eco system is amazing. you have angular-x for everything. it’s a shame not to use that.

    3.Combine them both – I’m obviously biased but our team wrote and maintain this library – angular-meteor and we’ve also released a tutorial for combining the two – angular-meteor tutorial

    Answered on November 15, 2018.
    Add Comment

    Here is an Another solution:

    AngularJS is now officially supported from the v1.2 of Meteor and using them together is the most powerful solution I know on today. http://angular-meteor.com

    As Meteor and AngularJS fields overlap on the view part, the real question is what are the benefits to use AngularJS as the tempting engine instead of Blaze ?

    • AngularJS generally requires less code to achieve the same result (easier and faster bindings, less glue code even if blaze is good at it)
    • AngularJS provides a convenient way to structure your code with modules which acts like local import or namespace. This is still “missing” even with the ECMA2015 support in the v1.2 .
    • AngularJS 2.0 will / is faster than Blaze but for loading the lib
    • There is a lot of templates, libraries and other framework based on AngularJS, much more than Blaze.



    Answered on November 15, 2018.
    Add Comment

  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.