Destroying a scope means that all of its watchers are removed and that the scope itself is removed from the $$children of its parent. Since the scope will no longer be referenced from anywhere, it will at some point just cease to exist as the garbage collector of the JavaScript environment reclaims it. (This of course only works as long as you don’t have external references to the scope or its watches from within application code.)The destroy operation is implemented in a scope function called $destroy.When called, it destroys the scope:
đang được dịch, vui lòng đợi..
