M
M
Max2015-10-18 18:47:23
Angular
Max, 2015-10-18 18:47:23

How to work with Angular and Rails?

Hello, I want to connect Angular to rails and try it out.
Connected the gem, added Angular to application.js.

<div class="field">
<%= f.label :title %><br>
<%= f.text_field :title %>
</div>

Where and how to write ng-model="tile" here and then like this --> { { title } } display what I wrote in the input?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question