Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to access Instance variables in Typescript file? #52

Open
SagareGanesh opened this issue Apr 19, 2017 · 2 comments
Open

How to access Instance variables in Typescript file? #52

SagareGanesh opened this issue Apr 19, 2017 · 2 comments

Comments

@SagareGanesh
Copy link

SagareGanesh commented Apr 19, 2017

I am trying to create a app in Rails with typescript. Now stuck in how to access my instance variables in typescript.

thanks

@rodri0315
Copy link

Have you figure anything out about this, did you get it to work?

@loqman
Copy link

loqman commented Jul 13, 2017

Change your file name to script.js.ts.erb and access your instance variable like you do in erb files:

<%= @instance_variable %>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants