文章分类 -  angularJs

angularJs--Ui-Router详解
摘要:Module Configuration Configure your states in your module's config method. Be sure to include ui.router as a module dependency. angular.module("myApp" 阅读全文
posted @ 2016-02-23 14:29 苏荷酒吧 阅读(154) 评论(0) 推荐(0)
angularJs--Ui-Router
摘要:为什么使用Ui-Router 1、使用Ajax不会留下历史记录 2、用户无法通过URL进入到指定页面 3、Ajax对SEC是个灾难 ngRoute示例代码 app.config(function($routeProvider) { $routeProvider.when('/hello', { te 阅读全文
posted @ 2016-02-23 11:44 苏荷酒吧 阅读(158) 评论(0) 推荐(0)
angularJs--自定义指令
摘要:angular.module('myApp', []) .directive('myDirective', function() { return { restrict: String, priority: Number, terminal: Boolean, template: String or 阅读全文
posted @ 2016-02-19 16:44 苏荷酒吧 阅读(82) 评论(0) 推荐(0)
angularJs--指令
摘要:1、基础ng属性指令 ng-disabled http://jsbin.com/iHiYItu/1/edit ng-readonly Type here to make sibling readonly: <input type="text" ng-model="someProperty"><br/ 阅读全文
posted @ 2016-02-19 10:10 苏荷酒吧 阅读(148) 评论(0) 推荐(0)