收集关于angularjs的一些讲解比较详细的文章

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>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值