Skip to content

Instantly share code, notes, and snippets.

View thiagofesta's full-sized avatar

Thiago Festa thiagofesta

View GitHub Profile
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);