Open SagareGanesh opened 7 years ago
I am trying to create a app in Rails with typescript. Now stuck in how to access my instance variables in typescript.
thanks
Have you figure anything out about this, did you get it to work?
Change your file name to script.js.ts.erb and access your instance variable like you do in erb files:
script.js.ts.erb
<%= @instance_variable %>
I am trying to create a app in Rails with typescript. Now stuck in how to access my instance variables in typescript.
thanks