摘要: 1 以使用ActionSheet为例子,虽然ionic已经有类似的directive,但是试一下ngcordova的也不防2 download ionic seed 熟悉使用nodejs的朋友,可以使用nodejs工具去下载1 sudo npm install -g cordova ionic2 新... 阅读全文
posted @ 2015-08-01 18:28 菠萝君 阅读(307) 评论(0) 推荐(0) 编辑
摘要: https://github.com/Jackey-Sparrow/Angular2-Contact-App 阅读全文
posted @ 2015-07-28 22:36 菠萝君 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1 Index.html -->2 cal.js/** * Created by Jackey Li on 2015/7/26. */import {Hello} from './profile.js';class Calc { constructor(){ thi... 阅读全文
posted @ 2015-07-28 22:03 菠萝君 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 1 内联样式/** * Created by Administrator on 2015/7/23. */import {Component, View, NgIf} from 'angular2/angular2';@Component({ selector: 'ng-test', p... 阅读全文
posted @ 2015-07-26 09:30 菠萝君 阅读(430) 评论(0) 推荐(0) 编辑
摘要: 1 normal component/** * Created by Administrator on 2015/7/23. */import {Component, View} from 'angular2/angular2';@Component({ selector: 'ng-test'... 阅读全文
posted @ 2015-07-25 12:03 菠萝君 阅读(2411) 评论(0) 推荐(0) 编辑
摘要: 1 import Routerimport {RouteConfig, RouterOutlet, RouterLink, routerInjectables} from 'angular2/router';2 setting your RouteConfig@RouteConfig([ {p... 阅读全文
posted @ 2015-07-23 22:03 菠萝君 阅读(1870) 评论(1) 推荐(0) 编辑
摘要: 1 import http and Injectimport {httpInjectables, Http} from 'angular2/http';import {Inject} from 'angular2/di'; 2 init your Http and use itclass App ... 阅读全文
posted @ 2015-07-23 21:55 菠萝君 阅读(570) 评论(1) 推荐(0) 编辑
摘要: TypeScriptSetUp1useTypeScriptcmdonWebStrom1.1downloadtypeScriptpackageusing'npminstall-gtypescript'1.2configuretheconfigurationinwebStrom2addatsfilean... 阅读全文
posted @ 2015-07-23 18:58 菠萝君 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 1 register your account athttps://apps.ionic.io/apps2 use cmd command to upload you app3 use your phone to AppStore, download IonicView and login, you... 阅读全文
posted @ 2015-07-22 23:29 菠萝君 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 1 basic usage1 import formDirectivesimport {formDirectives} from 'angular2/forms';2 inject directive into Viewdirectives: [formDirectives]3 config you... 阅读全文
posted @ 2015-07-21 21:24 菠萝君 阅读(396) 评论(0) 推荐(0) 编辑