- 博客(6)
- 资源 (3)
- 收藏
- 关注
原创 Angular4中调用js代码
Angular4中调用js代码 引言:Angular2开始采用TypeScript进行编码。本文讲述如何在Angular4项目中调用原生的 js 代码。本文代码: http://git.oschina.net/mingyueyixi/angular4-usejs代码使用环境:webstrom 调用过程可以归纳为:引入 js 文件到项目中编写 TypeScript 声明文件在 .angu
2017-06-24 22:31:24 21173 14
原创 Type string trivially inferred from a string literal, remove type annotation (no-inferrable-types)
TypeScript代码:private goY : string = 'www.baidu.com';会导致tslint报错:Type string trivially inferred from a string literal, remove type annotation (no-inferrable-types)tslint觉得自己
2017-06-09 11:28:20 15012 5
原创 TSLint: The selector of the component "xxx" should have prefix "app" (https://goo.gl/cix8BY) (
TypeScript的@Component中的selector:xxx 报错:TSLint: The selector of the component "xxx" should have prefix "app" (https://goo.gl/cix8BY)(component-selector)按照提示,修改tslint.json中的属性—
2017-06-08 17:28:37 4036 2
原创 TSLint: Identifier 'errMsg' is never reassigned; use 'const' instead of 'let'. (prefer-const)
TypeScript的Tslint又报错了,这回是变量未重新赋值,被强烈建议使用常量修饰符const。TSLint: Identifier 'errMsg' is never reassigned; use 'const' instead of 'let'. (prefer-const)TSLint:标识符'errMsg'永远不会被重新分配;使用'const'而不是'l
2017-06-08 11:23:16 23776
原创 TSLint: comment must start with a space (comment-format)
使用AngularCli创建项目后。TypeScript报错:TSLint: comment must start with a space (comment-format) 注释必须从一个空格开始(comment-format) 也就是说//之后必须跟随一个空格。 TSLint是一个TypeScript验证工具,用于检测代码。 在项目下的tslint.js...
2017-06-08 10:57:01 6438 6
原创 AngularJS 2+ 迅速扫盲
AngularJS 2+ 迅速扫盲 Angular2 基础学习。概念性扫盲。撰写此文时,AngularJS已经发展到版本4。本文实际上基于AngularJS4。知识点:模块 @NgModule组件 @Component指令 directives服务 service选择器 selector模板 template数据绑定 data binding依赖注入 dependency in
2017-06-07 22:27:52 5869 2
Ripple Emulator (Beta) 0.9.15
2017-06-14
安卓自动生成Parcelable代码
2016-10-19
自定义扇形进度条、异步加载网络图片、Activity疯狂旋转动画
2016-04-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人