11 2016 档案

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 阅读(561) 评论(0) 推荐(0)

Ionic2 beta8后更新的内容
摘要:移除了@App和@Page,使用@Component ionicBootstrap是必须的 重命名了应用程序的生命周期 所有事件也被重命名 变化如下: Ionic生命周期事件重命名: onPageLoaded 重命名为 ionViewLoaded onPageWillEnter 重命名为 ionVi 阅读全文

posted @ 2016-11-17 16:26 cjxhd 阅读(1775) 评论(0) 推荐(2)

ionic2中如何使用自动生成器
摘要:ionic generator是命令行的功能,ionic2自动帮我们创建应用程序,从而节省了大量的时间,并增加我们的速度来开发一个项目的关键部分。 ionic generator使我们可以自动创建以下几部份: component directive page provider 一、创建页面:ioni 阅读全文

posted @ 2016-11-17 16:26 cjxhd 阅读(5433) 评论(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 阅读(554) 评论(0) 推荐(0)

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

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

CSS3在hover下的几种效果代码分享,CSS3在鼠标经过时的几种效果集锦
摘要:效果一:360°旋转 修改rotate(旋转度数) 01 * {02 transition:All 0.4s ease-in-out;03 -webkit-transition:All 0.4s ease-in-out;04 -moz-transition:All 0.4s ease-in-out; 阅读全文

posted @ 2016-11-16 11:28 cjxhd 阅读(4901) 评论(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 阅读(2092) 评论(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 阅读(726) 评论(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 阅读(290) 评论(0) 推荐(0)

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

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

导航