Ask A Question

Notifications

You’re not receiving notifications from this thread.

What are the advantages/disadvantages to using Rails with AngularJS?

Rob Sturcke asked in Rails

Came across a tutorial for using Devise authority tokens in a rails API, however are there any other reasons to use AngularJS and Rails? Advantages or disadvantages?

The AngularJS with Rails tutorial:
https://medium.com/@avatsaev/angular-2-and-ruby-on-rails-user-authentication-fde230ddaed8#.64zce1mc2

New but familiar to AngularJS and looking to integrate it into my projects.

Reply

Been working with Angular 1.5 for the past few months and not really a fan. Yes it makes things easy with having ng-if and ng-click etc but I think using React or Vue.js would be much better.

Reply

I'll have to checkout React/Vue.js then. I've been messing with AngularJS on and off but not too satisfied with the lang.

Reply

It's got its up's and down's. you start to use it and you're like wth??? then you're like oohhhh I like this and then back to wth?? just seems bloated and all over the place for example this is some html i wrote out. Pretty ugly sometimes...but useful.

<a  class="user-name"
    ng-href="{{ $ctrl.activity.actor.objectUrl }}"
    ng-click="$ctrl.handleClick( 'user-name' )">
    {{ $ctrl.activity.actor.n }}
</a>
<a  ng-href="{{ $ctrl.activity.actor.objectUrl }}"
    class="brand-name"
    ng-click="$ctrl.handleClick( 'brand-name' )">
    {{ $ctrl.activity.actor.o[0].i }} at {{ $ctrl.activity.actor.o[0].n }}
</a>
Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,946+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.