M
M
Maxim2015-04-05 19:49:46
Angular
Maxim, 2015-04-05 19:49:46

How to check the model in angular after loading it from the server?

On the controller view, you need to check the state of the model for ng-show, but when the controller starts, this model does not yet exist and it is pulled from the server. How to wait for the download and only then check the status?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osher, 2015-04-05
Antonikhin @STJ

Check for undefined.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question