ionic-frameworkHow to use EcmaScript 6 features in Ionic?

By using gulp-babel and gulp-plumber

Ionic uses Gulp, so install gulp-babel and gulp-plumber.

npm install --save-dev gulp-babel gulp-plumber

Add babel to gulpfile.js like so:

var babel = require("gulp-babel");
var plumber = require("gulp-plumber");
var paths = {
  es6: ['./src/es6/*.js'],
  sass: ['./scss/**/*.scss']
gulp.task('default', ['babel', 'sass']);
gulp.task("babel", function () {
  return gulp.src(paths.es6)
gulp.task('watch', function() {, ['babel']);, ['sass']);

Edit ionic.project:

"gulpStartupTasks": [

Now when you run ionic serve, code will be transpiled for you.