AngularJS update View after Model loaded from Ajax

前端 未结 4 687

I\'m newbie of angularjs developing and i wrote this simple app, but don\'t understand how i can update view, after the model il loaded from ajax request on startup!

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-28 22:11

    I think you're better off using high level angular services for data transfer, also look into promises and services:

    http://docs.angularjs.org/api/ng.$q

提交回复
热议问题