1

With Angular2, I want to disable a button while loading html and make it enable when finishing rendering. How can I detect when finishing rendering?

1
  • What HTML are you loading how? Commented Jul 1, 2016 at 5:03

1 Answer 1

2

You can use the attribute defer in the <script> tag that loads your Angular code. This will ensure the code inside that script will be executed right after the rendering process is done. Have a look on this example

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.