码迷,mamicode.com
首页 >  
搜索关键字:angular    ( 5418个结果)
理解Angular中的$apply()以及$digest()
$apply()和$digest()在AngularJS中是两个核心概念,但是有时候它们又让人困惑。而为了了解AngularJS的工作方式,首先需要了解$apply()和$digest()是如何工作的。这篇文章旨在解释$apply()和$digest()是什么,以及在日常的编码中如何应用它们。探索$...
分类:移动开发   时间:2015-11-05 15:13:52    阅读次数:234
angular 服务
在Angular里面,services作为单例对象在需要到的时候被创建,只有在应用生命周期结束的时候(关闭浏览器)才会被清除。而controllers在不需要的时候就会被销毁了。服务用于在控制器之间进行共享,用的时候只要把服务注入到控制器就可以了。provider(name,object)provi...
分类:其他好文   时间:2015-11-04 19:15:59    阅读次数:478
AngularJS 路由:ui-router
UI-Router是Angular-UI提供的客户端路由框架,它解决了原生的ng-route的很多不足:视图不能嵌套。这意味着$scope会发生不必要的重新载入。这也是我们在Onboard中引入ui-route的原因。同一URL下不支持多个视图。这一需求也是常见的:我们希望导航栏用一个视图(和相应的...
分类:Web程序   时间:2015-11-04 17:40:19    阅读次数:220
angularJs-脏检查
scope是一个指向应用model的object,也是表达式的执行上下文。scope被放置在一个类似应用的DOM结构的层次结构中angular中变量是双向绑定的 ,那么怎么知道一个变量是否是变化了呢?1能通过固定的接口才能改变变量的值,比如说只能通过set()设置变量的值,set被调用的时候比较一下...
分类:Web程序   时间:2015-11-04 14:24:46    阅读次数:220
前端进阶之Angular
这段时间项目开发用到angular,深感js基础不扎实导致的囫囵吞枣,为了高效的学习,记录下一些经常用到的指令,服务。$apply:$q:filefileReaderfile-uploaderui-select 通过$http 绑定外表来选择 有一个疑问 jquery angular sui-ro....
分类:其他好文   时间:2015-11-03 12:29:01    阅读次数:114
python , angular js 学习记录【3】
1.Alembic是SQLAlchemy作者编写的Python数据库迁移工具。用它实现模型类和数据库的同步更新。(安装以及操作步骤 使用Alembic迁移数据库)使用Alembic添加数据库字段操作流程:切换至db_migrate目录下(1).在model.py里面添加内容(2).运行alembic...
分类:编程语言   时间:2015-11-02 15:33:04    阅读次数:229
[Angular 2] Passing data to components with 'properties'
Besides @Input(), we can also use properties on the @Component, to pass the data.import {Component, View, NgFor, Input} from 'angular2/angular2';@Comp...
分类:其他好文   时间:2015-11-02 06:41:39    阅读次数:176
[Angular 2] Pipes with Multiple Parameters
Showing how to set up a Pipe that takes multiple updating inputs for multiple Component sources.import {Component, View, NgFor, FORM_DIRECTIVES} from ...
分类:其他好文   时间:2015-11-01 17:51:19    阅读次数:331
[Angular 2] Exposing component properties to the template
Showing you how you can expose properties on your Controller to access them using #refs inside of your template.// letterSelect.tsimport {Component, V...
分类:其他好文   时间:2015-11-01 06:54:05    阅读次数:409
[Angular 2] Pipe Purity
Explaining how Pipes only change by default when your Pipe input parameters change and not when your data changes. It also shows you how to make an “u...
分类:其他好文   时间:2015-11-01 06:53:35    阅读次数:307
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!