随笔分类 - angular
摘要:Angular.js中处理页面闪烁的方法详解 Angular.js中处理页面闪烁的方法详解 前言 大家在使用{{}}绑定数据的时候,页面加载会出现满屏尽是{{xxx}}的情况。数据还没响应,但页面已经渲染了。这是因为浏览器和angularjs渲染页面都需要消耗一定的时间,这个间隔可能很小,甚至让人感
阅读全文
摘要:https://github.com/kevinastone/django-api-rest-and-angular/blob/master/Readme.markdown
阅读全文
摘要://////1 $http.get("/api/task/165/").then( function(a){ console.log(a); }, function(b){ console.log(b); } ) .then(function(e){ console.log("e"); }) .th
阅读全文
摘要:https://www.peterbe.com/plog/promises-with-$http
阅读全文
摘要:$emit只能向parent controller传递event与data $broadcast只能向child controller传递event与data $on用于接收event与data 在$on的方法中的event事件参数,其对象的属性和方法如下
阅读全文