AngullarJS asynchronous calls model

angullar asynchronous calls model

function angullar_asynchronous_calls_model(){

   var id_exist = document.getElementById(the_id_defined_on_page)

    if (id_exist) {

        var scope = angular.element(id_exist).scope();

        scope.$apply(function () {

            scope.the_function_defined_in_pages_controller();

        })

    }

}

AngullarJS asynchronous calls model

你可能感兴趣的:(js,AngularJS,controller)