Angular+rails Integrated Combat

Source: Internet
Author: User

http://start.jcolemorrison.com/setting-up-an-angularjs-and-rails-4-1-project/

1. Adding Gems
Gem ' sprockets ', ' 2.12.3 ' #默认sporckets的版本有bug

2. Code in App/assets/javascripts/ng-app/app.js
$locationProvider. Html5mode (True); This line needs to be commented

3. There are three ways of Bower

(1) Bower.json http://start.jcolemorrison.com/setting-up-an-angularjs-and-rails-4-1-project/

(2) Bowerfile http://angular-rails.com/bootstrap.html

(3) Bower Init https://thinkster.io/angular-rails/

4. Rails route is available in one of two ways

(1) Yield http://start.jcolemorrison.com/setting-up-an-angularjs-and-rails-4-1-project/

(2) No yield https://thinkster.io/angular-rails/

Experience:

Angluar and rails combine some nondescript, two-level routing, two-level local templates that are complex, and the features of angular and rails are not fully functioning

Angluar is the most appropriate way to use it alone, with very simple scripts such as node. js

Angular+rails Integrated Combat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.