Skip to content

Instantly share code, notes, and snippets.

import Ember from 'ember';
export default Ember.Component.extend({
init(){
this._super(...arguments);
this.set('state', 'stopped');
},
didStateChanged: Ember.observer('state', function(){
@tarmann
tarmann / components.my-component.js
Created August 3, 2017 13:36
computed('val') vs computed('val.[]')
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
replace(){
this.set('data', []);
},
add(){
this.get('data').pushObject('something');

Aprenda desenvolvimento front-end na prática

Refiz o wordle só que com características de animais para minha filha: https://jsfiddle.net/azkv4d5r/1/

As tecnologias utilizadas no projeto são bem básicas:

  • HTML para a estrutura da página
  • JavaScript para a lógica do jogo
  • CSS com a biblioteca Tailwind para os estilos