With properties we can follow a one-way parent→child flow communication between components. This lesson shows you how you can pass down properties to ...
分类:
其他好文 时间:
2017-09-13 18:28:38
阅读次数:
287
参考:http://blog.sina.com.cn/s/blog_66b4f1180102uzxs.html ...
分类:
其他好文 时间:
2017-09-13 14:00:11
阅读次数:
776
Directives allow us to apply DOM manipulations as side effects. We’ll show you how you can create your own Vue directive to change a component’s color ...
分类:
其他好文 时间:
2017-09-12 16:51:46
阅读次数:
369
vue-router introduces new hooks into the component. In this lesson we’ll show you how to use these new hooks in your class based Vue components in Typ ...
分类:
其他好文 时间:
2017-09-11 23:02:03
阅读次数:
388
重要点:要把插件放在src/assets文件中如何在angular-cli中使用jquery插件a.在index.html中引入<scriptsrc="./assets/jquery-1.8.3.min.js"></script>b.在要使用jquery的组件中声明(XX.component.ts)declarevar$:any;c.导入onInitimport{OnInit}from‘@angular/cor..
分类:
其他好文 时间:
2017-09-11 22:54:05
阅读次数:
200
错误代码就不贴出来了,直接上代码吧! 首先在xx.module.ts添加 1.import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2.添加 schemas:[ CUSTOM_ELEMENTS_SCHEMA ] 完成后的整体代码是这样的 im ...
分类:
其他好文 时间:
2017-09-11 19:55:35
阅读次数:
213
如果是采用IIS+ISAPI的话,就是使用TS版本。如果是采用IIS+FastCGI的话,就使用NTS版本。 ...
分类:
Web程序 时间:
2017-09-10 17:45:03
阅读次数:
189
Typescript 2.5 adds JSDoc type assertion support for javascript file via ts-check service. First of all, you should make sure you have typescript@2.5 ...
分类:
编程语言 时间:
2017-09-09 21:37:29
阅读次数:
147
1.ts代码 /** * @version:1.0.0 * @author: zb * @创建时间: 2017-05-25 18:22:35 */ import { Component, OnInit, OnDestroy } from '@angular/core'; import { Activ ...
分类:
其他好文 时间:
2017-09-08 18:30:14
阅读次数:
296
项目情况:用vscode编写的ionic(tab类型)项目(具体使用到的技术Angular\Typescrip\Ionic) 具体情况如下: 找到的可能原因: 出错的项目情况:在一个ts文件中编写两个组件,并且分别为两个组件定义了一个Html页面。 ionic项目中一个ts文件不支持为每一个组件调用 ...
分类:
其他好文 时间:
2017-09-07 19:39:17
阅读次数:
144