Skip to content

Instantly share code, notes, and snippets.

View thiagofesta's full-sized avatar

Thiago Festa thiagofesta

View GitHub Profile
import Controller from '@ember/controller';
import { action } from "@ember/object";
import { tracked } from "@glimmer/tracking";
import { A } from '@ember/array';
import {
TrackedArray,
} from 'tracked-built-ins';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
import Ember from 'ember';
import hbs from 'htmlbars-inline-precompile';
export default Ember.Component.extend({
layout: hbs`<div>my-component using inline hbs. if I have a my-component.hbs this gets ignored.</div>`
});
html(lang="en", ng-app='test', ng-strict-di)
head
title(ng-bind="tfMetaTags.title")
meta(charset="utf-8")
meta(http-equiv="X-UA-Compatible", content="IE=edge")
meta(name="viewport", content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0")
meta(name="fragment", content="!")
meta(ng-repeat="(key, value) in tfMetaTags.properties", name="{{key}}", content="{{value}}")
base(href="/")
// This method gives you an easier way of calling super
// when you're using Backbone in plain javascript.
// It lets you avoid writing the constructor's name multiple
// times. You still have to specify the name of the method.
//
// So instead of having to write:
//
// User = Backbone.Model.extend({
// save: function(attrs) {
// this.beforeSave(attrs);
{"user":{"id":"1","firstName":"John"}}