Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Counter with min, max, and custom step value.
export class Counter {
count = 0;
min = 0;
max = 50;
step = 5;
isDark = false;
increment() { if(this.count + this.step <= this.max) this.count += this.step; }
decrement() { if(this.count - this.step >= this.min) this.count -= this.step; }
reset() { this.count = 0; }
toggleTheme() { this.isDark = !this.isDark; }
}
<div class.bind="isDark ? 'dark-theme' : 'light-theme'">
<h2>Counter: ${count}</h2>
<div>
<button click.delegate="increment()">+ ${step}</button>
<button click.delegate="decrement()">- ${step}</button>
<button click.delegate="reset()">Reset</button>
</div>
<button click.delegate="toggleTheme()">Toggle Theme</button>
</div>Aurelia is a modern, open-source, front-end framework focused on clean architecture, minimal boilerplate, and standards-based development. It emphasizes unobtrusive conventions and powerful data binding.
Origin & Creator
Created by Rob Eisenberg in 2015 after leaving the Angular team, built around modern ES standards and extensibility.
Industrial Note
Aurelia is specialized for teams seeking clean architecture, minimal framework intrusion, and deep customizability for enterprise apps.