1.深究AngularJS——自定义服务详解(factory、service、provider)
博客地址:https://blog.youkuaiyun.com/zcl_love_wx/article/details/51404390
2.$q服务
https://www.cnblogs.com/liulangmao/p/3907571.html
3.angularJS自定义指令各配置项详解
https://blog.youkuaiyun.com/dongfangyihaolan/article/details/52468664
4.angularjs 父子作用域之间交互($on、$emit和$broadcast)
https://www.jianshu.com/p/afb5dc7ac89a
5.《AngularJS》----$apply 与 $watch
https://blog.youkuaiyun.com/zhoukun1008/article/details/51746994
6. Angular.js中用ng-repeat-start实现自定义显示
博客地址:https://www.jb51.net/article/95024.htm
内容有些错误,附:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="angular.js"></script>
</head>
<body>
<div ng-app="myApp" ng-controller="myCtrl">
<table>
<tr>
<th>name</th>
<th>description</th>
<th>operate</th>
</tr>
<tr ng-repeat-start="x in products">
<td colspan="2">{{x.name}}</td>
<td><a href="#">Buy</a></td>
</tr>
<tr ng-repeat-end><td>{{x.description}}</td></tr>
</table>
</div>
</body>
<script>
var app = angular.module('myApp',[]);
app.controller('myCtrl',function($scope){
$scope.products = [
{
id: 1,
name: 'Product 1',
description: 'Product 1 description.'
},
{
id: 2,
name: 'Product 3',
description: 'Product 2 description.'
},
{
id: 3,
name: 'Product 3',
description: 'Product 3 description.'
}
];
})
</script>
</html>