angular学习总结
文章平均质量分 67
笔芯君
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ui-router使用方法
index.html页面 AngularJS Home Page var myApp = angular.module("myApp", ['ui.router']); myApp.config(['$stateProvider', '$urlRouterProvider', function ( $stat原创 2016-05-09 15:05:45 · 827 阅读 · 0 评论 -
ng-src video的不可以双向绑定链接
angular.module('myApp',[]).controller('myCtrl', ['$scope','$sce',function($scope,$sce){$scope.detail={'videoa':'xxxxx','title':'课程一'}// http://7xigeb.com2.z0.glb.qiniucdn.com/j1.mp4$scope.videoS原创 2016-04-28 15:37:58 · 2146 阅读 · 0 评论 -
angular常用功能
1、angular的强大的表单验证 (1)、表单必须有form标签,并且form标签上必须有一个name属性(2)、form中不能有action属性。提交交由ng-submit处理(3)、input标签一定要有ng-model以及name属性使用方式:查看表单状态$scope.getFormStatus = function(){console.原创 2016-03-29 14:51:06 · 925 阅读 · 0 评论 -
angular的基本指令
ng-bindangular的双向绑定是很有名的,一开始我都是用{{detail.totle}}双花括号来读数据的,这样会有一个问题,那就是数据还没加载出来的时候就会看到{{detail.totle}}这样的形式这样会使页面变得非常难看,那么我们可以用ng-bind=“detail.totle”的方式来绑定数据,在页面还没加载出来的时候,那么页面上绑定数据的地方就是空白的,这样就不会使页面边的原创 2016-03-28 17:59:12 · 1415 阅读 · 2 评论 -
angular的directive的属性和用法
app.directive('datetimepicker',function(){return { restrict : 'A',//表示该directive仅能以element方式使用,即://A: 表示该directive仅能以attribute方式使用,即: link: function (scop原创 2016-05-06 09:54:07 · 2001 阅读 · 0 评论
分享