Ember.js Framework Core

6.12.0 · active · verified Sun Apr 19

Ember.js is a productive, battle-tested JavaScript framework for building ambitious web applications. The `ember-source` package provides the core runtime and build-time components of the Ember framework, including the Glimmer rendering engine and the Ember object model. As of its current stable version 6.12.0, Ember continues to offer a 'convention over configuration' approach, emphasizing stability and developer ergonomics through a structured ecosystem. Releases typically follow a six-week cycle for minor versions, with LTS (Long Term Support) releases provided periodically. Key differentiators include its comprehensive toolchain (Ember CLI), a robust data layer (Ember Data), and a strong commitment to backward compatibility and upgrades via 'editions' and 'octane' paradigms. The framework is designed for applications with long lifecycles, offering features like a strong routing solution, reactive programming primitives, and an opinionated component model.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates a basic Glimmer component with `tracked` properties and an `@action` decorator.

import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';

interface Args {
  message: string;
}

export default class GreetingComponent extends Component<Args> {
  @tracked count = 0;

  get greeting() {
    return `${this.args.message} World! You clicked ${this.count} times.`;
  }

  @action
  increment() {
    this.count++;
  }

  // Example of a lifecycle hook
  constructor(owner: unknown, args: Args) {
    super(owner, args);
    console.log('GreetingComponent initialized with message:', this.args.message);
  }
}

view raw JSON →