angular setInterval timing operation

The setInterval method in angular is a one-way binding. It is only bound once, and the timing effect cannot be achieved. It can be achieved by using $interval. Attach the code:Enter image description

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325222750&siteId=291194637