Logo
Explore Help
Sign In
honeymoose/angular-cn
1
0
Fork 0
You've already forked angular-cn
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
angular-cn/typing_spec/basic_spec.ts

18 lines
323 B
TypeScript
Raw Normal View History

fix(angular2): remove `angular2.ts` module Closes #5815 Closes #5844 BREAKING CHANGE: `angular2/angular2` was removed. Use the correct import from one of the barrels. E.g. `angular2/core`, `angular2/platform/browser`, `angular2/common`, … Note: This only applies to JavaScript, Dart is not changed.
2015-12-11 13:31:30 -08:00
import {Component, View} from 'angular2/core';
import {bootstrap} from 'angular2/platform/browser';
feat(typings): add typing specs add test in gulpfile which will compile a basic TS file with generated angular2.d.ts to ensure generated d.ts is valid syntactic TS Adds support for enums in .d.ts generation pipeline. Removes renaming reexports in http module.
2015-06-16 10:46:12 -07:00
@Component({
selector: 'my-app'
})
@View({
template: '<h1>Hello {{ name }}</h1>'
})
// Component controller
class MyAppComponent {
name: string;
constructor() { this.name = 'Alice'; }
}
Produce .d.ts files from our typescript compilation. Deliver them into our npm module output so users can consume them directly. Fixes #3082
2015-10-01 19:49:45 -07:00
bootstrap(MyAppComponent);
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 109ms Template: 6ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API