随笔分类 -  AngularJS 2.0

学习整理
Angularjs2-下拉列表实现(父子组件通信)
摘要:基于http://valor-software.com/ng2-bootstrap/#/dropdowns 做的一个下拉列表控件,优化了如下功能,项目地址 列表内容由父组件传递 子组件选择框发生变化后会通知父组件 demo 列表内容由父组件传递 这个主要利用到了ng2的Input,在子组件中声明一个 阅读全文

posted @ 2016-12-01 17:04 cjxhd 阅读(2004) 评论(0) 推荐(0)

Angular 2 HTTP Requests with Observables
摘要:原文 https://scotch.io/tutorials/angular-2-http-requests-with-observables code:https://github.com/christiannwamba/scotch-ng2-http demo:http://embed.plnk 阅读全文

posted @ 2016-11-25 10:32 cjxhd 阅读(564) 评论(0) 推荐(0)

VS Code Angular Snippets
摘要:Visual Studio Code Beta is available and it supports extensions! I published my first 2 extensions for creating Angular 1 and 2 snippets. You can grab 阅读全文

posted @ 2016-11-17 16:25 cjxhd 阅读(560) 评论(0) 推荐(0)

Angular2双向数据绑定
摘要:看看Name的<input>标签,你会看到[(ngModel)]="model.name"的用法。 [()]表示:这里使用了双向绑定。 []表示:数据从Model流向View ()表示:数据从View流向Model 阅读全文

posted @ 2016-11-16 20:57 cjxhd 阅读(1487) 评论(0) 推荐(0)

Angular2 DatePipe
摘要:The hero's birthday is {{ birthday | date:'yyyy年MM月dd日 HH:mm:ss' }} // birthday = Date.now(); birthday = new Date(2016, 10, 21); 阅读全文

posted @ 2016-11-09 17:35 cjxhd 阅读(2093) 评论(0) 推荐(0)

angular2实现图片轮播
摘要:1 import { Component, OnInit } from '@angular/core'; 2 3 @Component({ 4 moduleId: module.id, 5 selector: 'my-app', 6 template: ` 7 8 9 10 11 ... 阅读全文

posted @ 2016-11-09 17:32 cjxhd 阅读(730) 评论(0) 推荐(0)

DIV+CSS布局最基本的内容
摘要:本文讲解使用DIV+CSS布局最基本的内容,读完本文你讲会使用DIV+CSS进行简单的页面布局。 转载请标明:http://www.kwstu.com/ArticleView/divcss_2013929173533658 关于DIV+CSS布局中用到的CSS必备知识请看:http://www.kw 阅读全文

posted @ 2016-11-09 17:09 cjxhd 阅读(291) 评论(0) 推荐(0)

angular2中使用jQuery
摘要:我知道angular2使用jQuery的想法可能看到一点点奇怪很多的你,我们都知道,angular2负责管理我们的视图组件和DOM元素相关的一切,这听起来像一个好主意,用另一个框架做的一个工作角可以轻易做到。 也就是说,为什么会有人想要jQuery和angular2整合? 嗯,有一些情况下,我们仍然 阅读全文

posted @ 2016-11-01 17:35 cjxhd 阅读(7784) 评论(1) 推荐(0)

The Router路由
摘要:Basics基础路由功能Child Routers子路由Screen Activation屏幕激活Design设计 阅读全文

posted @ 2016-01-23 13:37 cjxhd 阅读(185) 评论(0) 推荐(0)

templating(模板)
摘要:templating特点:Dynamic Loading动态加载Directives指令Component Directive组件指令示例:@ComponentDirective({ selector:'tab-container', directives:[NgRepeat]})exp... 阅读全文

posted @ 2016-01-23 00:55 cjxhd 阅读(223) 评论(0) 推荐(0)

dependency injection特征
摘要:dependency injection依赖注入特征:Type & Metadata Annotations类型和元数据注释Scope/Lifetime作用域/生命周期Child Injectors子注入More...更多//元数据类型构造函数type metadata from construct... 阅读全文

posted @ 2016-01-23 00:23 cjxhd 阅读(145) 评论(0) 推荐(0)

AtScript特征
摘要:ES6的超集用TypeScript语法可选运行时类型验证类型(Type)和元数(metadata)据注释 阅读全文

posted @ 2016-01-23 00:02 cjxhd 阅读(132) 评论(0) 推荐(0)

Databinging数据绑定
摘要:今天学习了AngularJS2.0的数据绑定[attribute]: [属性]-绑定到视图的一种方式(event): (事件)-附加事件处理程序(^event): (^事件)-附加一个冒泡事件处理程序[arrtibute|name]: [属性|名称]-与[属性... 阅读全文

posted @ 2016-01-22 23:43 cjxhd 阅读(668) 评论(0) 推荐(0)

导航