![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
AngularJS学习笔记
文章平均质量分 78
xupeng1986
这个作者很懒,什么都没留下…
展开
-
AngularJS简介
客户端模板AngularJS中,模板和数据都会呗发送到浏览器中,然后在ke'hu原创 2014-11-17 00:48:34 · 300 阅读 · 0 评论 -
多个控制器内数据共享
通过$$prevSibling方法实现共享:JS页面:angular.module('myApp',[]).controller('firstController', function($scope){ $scope.date = { name: "Tom"原创 2014-11-24 06:15:50 · 569 阅读 · 0 评论 -
$provider里factory、service方法
总觉得英文文档写的比较直观:$provide- service in module autoThe $provide service has a number of methods for registering components with the $injector. Many of these functions are also exposed on an原创 2014-11-22 06:10:59 · 570 阅读 · 0 评论 -
$provide里的provider方法
定义服务$provider服务本身是一个任意的对象。ng原创 2014-11-22 02:10:03 · 436 阅读 · 0 评论 -
模块和控制器
什么是Module大部分的应用都有一个主方法(main)y原创 2014-11-20 07:25:44 · 1321 阅读 · 0 评论 -
购物车--购买数量问题
购买数量问题原创 2014-11-20 04:24:06 · 1091 阅读 · 0 评论 -
练习购物车2
搭完框架后,该去实现里面的功能了。首先原创 2014-11-20 02:29:57 · 520 阅读 · 0 评论 -
$watch
$watch在digest执行的时候,如果watch观察的原创 2014-11-18 11:53:22 · 502 阅读 · 0 评论 -
练习购物车
先去下载Bootstrap;原创 2014-11-19 00:57:25 · 378 阅读 · 0 评论 -
$scope里的$apply、$digest方法
什么是scope官方文档的解释:scope is an object that refers to the application model. It is an execution context for expressions. Scopes are arranged in hierarchical structure which mimic the DOM structure of原创 2014-11-18 11:25:31 · 1276 阅读 · 0 评论 -
Data Binding
先搭建一下卡法环境,1原创 2014-11-17 04:06:25 · 315 阅读 · 0 评论 -
多个控制器
先来个实例代码:原创 2014-11-18 02:49:49 · 391 阅读 · 0 评论 -
ng-bind
//{{name}}//{{age}}原创 2014-11-18 01:24:14 · 916 阅读 · 0 评论 -
AngularJS控制器
控制器原创 2014-11-17 15:04:21 · 385 阅读 · 0 评论 -
过滤器current number date
$filter- $filterProvider- service in module ngFilters are used for formatting data displayed to the user.The general syntax in templates is as follows:{{ expression [| filter_name[:paramet原创 2014-11-24 06:23:04 · 424 阅读 · 0 评论