Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

In ASPX page we can write like this

<script id="my_plugin" type="text/javascript" data-encoding="jsonb" data-model="<%= myobj.ModelCode %>" data-object="<%= myobj.GetObject() %>" src="//my.my.com/js/my.js"></script>

And on c# side

protected void Page_Init(object sender, EventArgs e) {// code which return myobj }

How to do this in AngularJS? Means how to bind values to attribute of script tag dyanamically?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.