This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"user":{"id":"1","firstName":"John"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>` | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |