我想在我的Windows 10上安装Visual Studio Ultimate 2013,但是我有这个错误:

我做了这两件事(他们已经解决了Windows 8上的问题)


但我仍然无法安装它.
函数ngAfterContentInit和 ngAfterViewInit有什么区别?
我有这样的事情:
import { Component, OnInit, Input } from '@angular/core';
@Component({
selector: 'column',
template: '<ng-content></ng-content>'
})
export class ColumnComponent {
@Input() columnWidth: string = '0';
constructor() {}
}
Run Code Online (Sandbox Code Playgroud)
我想申请财产columnWidth时至[ngStyle]上
<ng-content></ng-content>
Run Code Online (Sandbox Code Playgroud)
父元素,做这样的事情:
<div [ngStyle]="{'width': columnWidth+'px'}" > ....
Run Code Online (Sandbox Code Playgroud)
我知道如何将样式应用于主机元素:
:host { /*styles*/ }
Run Code Online (Sandbox Code Playgroud)
但我不知道将参数传递给它.
我想用新的RC4版本运行我的旧angular2单元测试,但我有一个问题.
MockApplicationRef发生了什么?
我应该在这里使用什么呢?
provide(ApplicationRef, { useClass: MockApplicationRef})
Run Code Online (Sandbox Code Playgroud) 我想使用异步/ AWAIT功能与angular2-的WebPack-starer和打字稿(现在有这个功能针对ES5的支持),但我发现了错误:

这是组件内部的代码:
// function inside component
async checkSlug(slug: string) {
// nothing here
}
Run Code Online (Sandbox Code Playgroud)
我正在使用 webpack2.2 和 typescript 2.1.5。这是我的 tsconfig:
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"noEmit": true,
"noEmitHelpers": true,
"strictNullChecks": false,
"baseUrl": "./src",
"paths": {
},
"lib": [
"dom",
"es7",
"es2015.promise"
],
"types": [
"hammerjs",
"jasmine",
"node",
"protractor",
"selenium-webdriver",
"source-map",
"uglify-js",
"webpack",
"chai",
"chai-as-promised",
"lodash"
]
},
"exclude": [
"node_modules",
"dist" …Run Code Online (Sandbox Code Playgroud) 我想开发2 个版本相同但版本不同的包:
第一的
// package.json
{
"name":"mypackage",
"version": "1.0.0-base"
}
Run Code Online (Sandbox Code Playgroud)
第二
// package.json
{
"name":"mypackage",
"version": "2.0.0-next"
}
Run Code Online (Sandbox Code Playgroud)
现在我想在两个不同的项目中做:
npm link <path to mypackage@1.0.0-base>
或者
npm link <path to mypackage@2.0.0-next>
现在,当我这样做时,上一个链接的包“替换”了以前链接项目中名称为mypackage的每个链接模块。
我知道npm具有用于链接的“全局空间”……但是有什么办法可以解决这个问题吗?
angular ×4
async-await ×1
bower ×1
node.js ×1
npm ×1
shadow-dom ×1
typescript ×1
webpack-2 ×1
windows-10 ×1
yarnpkg ×1