Skip to content

Instantly share code, notes, and snippets.

View rinoldsimon's full-sized avatar

Rinold Simon rinoldsimon

View GitHub Profile
@rinoldsimon
rinoldsimon / controllers.application.js
Last active April 27, 2019 14:49 — forked from jelhan/controllers.application.js
access property inside computed
import Ember from 'ember';
export default Ember.Controller.extend({
appName: "ember-twiddle",
allItems: ['a', 'b'],
sortedItems: Ember.computed.sort('allItems', function(a, b) {
alert(this.get('columnList'));
}),
columnList: ["name","shortcode"],
init() {

CSS Selectors Cheat Sheet

Element selectors

Element -- selects all h2 elements on the page

h2 {
 foo: bar;