Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import {Component, View, bootstrap} from 'angular2/angular2';
- @Component({
- selector: 'my-app'
- })
- @View({
- template: '<h1>Hello {{ name }}</h1>'
- })
- // Component controller
- class MyAppComponent {
- name: string;
- constructor() {
- this.name = 'Alice';
- }
- }
- bootstrap(MyAppComponent);
- var gulp = require('gulp');
- var babel = require('gulp-babel');
- gulp.task('default', function () {
- return gulp.src('App.es6')
- .pipe(babel())
- .pipe(gulp.dest('dist'));
- });
- {
- "stage": 1
- }
- {
- "presets": ["stage-1"]
- }
- {
- "presets": ["es2015"],
- "plugins": ["transform-decorators-legacy"]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement