码迷,mamicode.com
首页 >  
搜索关键字:angularJS    ( 4958个结果
js 实现 di
前些时候有使用过AngularJS一些时间,最大的感受就是Angular完全颠覆了我们开发Web应用的方式,自己被其许多耳目一新的设计思想所折服。首先想说的就是依赖注入(DI),这也意味着,你在使用某一个模块时,不需要去手动require()一下,你需要的模块会自己注入到的函数所在的作用域中,如:J...
分类:Web程序   时间:2014-12-22 22:41:21    阅读次数:256
ng-repeat循环输出出现Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique
使用ng-repeat循环输出对象的时候出现如下错误: Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: c in shopCount, Duplicate key: undefined:undefined 应该在循环是加以下...
分类:其他好文   时间:2014-12-22 12:59:55    阅读次数:223
读ImageCropper源码
原库首页http://andyshora.com/angular-image-cropper.html根据项目的需求,要在Web上面裁剪图片,找到了这个可以用的AngularJs的库,涉及到了一些没有用到的知识。在这里做一下总结。1. JSHint原码里面有一些JSHint的warning, 要注意...
分类:其他好文   时间:2014-12-22 12:40:33    阅读次数:225
angularJS使用$watch监控数据模型的变化
使用$watch监控数据模型的变化 在scope 内置的所有函数中,用得最多的可能就是$watch 函数了,当你的数据模型中某一部分发生变化时,$watch 函数可以向你发出通知。你可以监控单个对象的属性,也可以监控需要经过计算的结果(函数),实际上只要能够被当作属性访问到,或者可以当作一个JavaScript 函数被计算出来,就可以被$watch 函数监控。它的函数签名为 $wa...
分类:Web程序   时间:2014-12-22 11:11:51    阅读次数:193
使用AngularJS结合Highchart图表动态获取JSON格式数据
Highchart折线图代码 $(function () { var chartLine = new Highcharts.Chart({ chart: { type: 'line', renderTo: 'container2' }, ti...
分类:Web程序   时间:2014-12-22 09:34:10    阅读次数:2298
AngularJS篇 <<The complete guide of AngularJS>>笔记
定义服务的多种方式:// factory方式angular.module('myApp', []).factory('UserService', function($http) { var current_user; return { getCurrentUser: fun...
分类:Web程序   时间:2014-12-22 00:50:06    阅读次数:224
[AngularJS] Build Your Own ng-controller Directive
/** * Created by Answer1215 on 12/21/2014. */angular.module('app', []) .controller('FirstCtrl' , function(){ var vm = this; vm.messag...
分类:Web程序   时间:2014-12-21 23:28:14    阅读次数:300
AngularJS clone directive 指令复制
AngularJS clone directive 指令复制,使用DirectiveBuilder轻松克隆指令。...
分类:Web程序   时间:2014-12-21 18:03:41    阅读次数:399
AngularJS form $addControl 注册控件control
AngularJS form $addControl 注册控件control...
分类:Web程序   时间:2014-12-21 18:02:28    阅读次数:189
AngularJS学习-初识
angularJS定义和特点 1.google前端开源框架 2.MVVM(model view view-model)设计模式 : Model将和ViewModel互动(通过$scope对象),将监听Model的变化。这些可以通过View来发送和渲染,由HTML来展示你的代码 3.方便的REST 4...
分类:Web程序   时间:2014-12-21 13:58:29    阅读次数:200
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!