上一页 1 ··· 446 447 448 449 450 451 452 453 454 ··· 468 下一页
摘要: ModelValue and ViewValue: $viewValue: Actual string value in the view. $modelValue: The value in the model that the control is bound to. In Anuglar, i 阅读全文
posted @ 2014-12-20 22:17 Zhentiw 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: A chunk may be used in many pages, different page may require different style.We can use Placeholder to pass in the value.[[+placeholder_name]]For exm... 阅读全文
posted @ 2014-12-19 22:36 Zhentiw 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Chunk in Modx can cut your template into samll pieces to make code reuseable.[[$chunk_name]]For example we can replace the html header with [[$html_he... 阅读全文
posted @ 2014-12-19 21:51 Zhentiw 阅读(168) 评论(0) 推荐(0) 编辑
摘要: After uploading javascript, css and images to the assets folder.We try to use Template to customizeour html.First template: We set up some placeholder... 阅读全文
posted @ 2014-12-19 19:32 Zhentiw 阅读(165) 评论(0) 推荐(0) 编辑
摘要: In Modex, there are three tabs: Resoources, Elements & FilesFirst: 'Files' is the place where to put javascript, css & images. I also want to put font... 阅读全文
posted @ 2014-12-19 19:22 Zhentiw 阅读(142) 评论(0) 推荐(0) 编辑
摘要: You can use ngModel in your own directives, but there are a few things you'll need to do to get it working properly.ngModel itself is an directive. If... 阅读全文
posted @ 2014-12-19 05:42 Zhentiw 阅读(472) 评论(0) 推荐(0) 编辑
摘要: Directive can use another directive though 'require' keyword.angular.module('docsTabsExample', []).directive('myTabs', function() { return { restr... 阅读全文
posted @ 2014-12-19 05:21 Zhentiw 阅读(224) 评论(0) 推荐(0) 编辑
摘要: We have code like:var numbers = [1,2,3];for(var i in numbers){ setTimeout(function(){console.log(numbers[i]); }, 0);}//3//3//3Note:1. function... 阅读全文
posted @ 2014-12-17 18:47 Zhentiw 阅读(333) 评论(0) 推荐(0) 编辑
摘要: The ui-router library for AngularJS provides the ability to name views within your application. This is useful for dividing up your application into s... 阅读全文
posted @ 2014-12-17 17:03 Zhentiw 阅读(731) 评论(0) 推荐(0) 编辑
摘要: ui-router has the powerful ability to define abstract states, or states that can't be navigated to, but are useful for defining a set of states with s... 阅读全文
posted @ 2014-12-17 03:30 Zhentiw 阅读(838) 评论(0) 推荐(0) 编辑
上一页 1 ··· 446 447 448 449 450 451 452 453 454 ··· 468 下一页