摘要: Angular Directive Ctrl Dir ... 阅读全文
posted @ 2014-08-14 17:15 Zhentiw 阅读(205) 评论(0) 推荐(0) 编辑
摘要: var app = angular.module("drinkApp", []);/** scope:{flavor: "@"} has the same affect as link: function(scope, element, attrs){ scope.flav... 阅读全文
posted @ 2014-08-14 16:51 Zhentiw 阅读(208) 评论(0) 推荐(0) 编辑
摘要: For have a better understand of Isolate Scope and the notation in scope:{}, we see an example:HTML: Angular Directive ... 阅读全文
posted @ 2014-08-14 15:17 Zhentiw 阅读(189) 评论(0) 推荐(0) 编辑
摘要: #self aside li{ list-style-type: none;padding:5px;border-bottom: 1px solid #ccc;} #self aside li:last-child{border:0;} To remove last li's border; 阅读全文
posted @ 2014-08-14 04:34 Zhentiw 阅读(268) 评论(0) 推荐(0) 编辑
摘要: /** Retrieving and using numerical time data*/var rightnow = new Date();console.log(rightnow); //Tue Aug 12 2014 22:07:01 GMT+0300 (FLE Daylight Ti... 阅读全文
posted @ 2014-08-14 03:43 Zhentiw 阅读(208) 评论(0) 推荐(0) 编辑
摘要: //Variable message = "Ready for some Coffee?"alert(message)/*//in Javascriptvar message = "Ready for some Coffee?";alert(message);*//** We can see ... 阅读全文
posted @ 2014-08-14 03:41 Zhentiw 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Important things to remember: 1. Usually, we create Collection, CollectionViews, Model, View. Collection <--> CollectionViews Moel <--> View 2. Applic 阅读全文
posted @ 2014-08-14 03:39 Zhentiw 阅读(210) 评论(0) 推荐(0) 编辑
摘要: This demo shows that three directive 'require' from another directive. Angular Directive Superm... 阅读全文
posted @ 2014-08-14 03:24 Zhentiw 阅读(224) 评论(0) 推荐(0) 编辑