//获取动态生成的元素
            getJqforAnguar:function(jqid){
                angular.element(document).injector().invoke(function($compile){// 编译html
                    var $jqid = jqid;
                    var scope = angular.element($jqid).scope();
                    $compile($jqid)(scope);
                })
            },

 

posted on 2018-07-25 10:48  chenlw101  阅读(262)  评论(0编辑  收藏  举报