Skip to content

Instantly share code, notes, and snippets.

'use strict';
angular
.module('gitHubIssueViewerApp', [
'ngRoute',
'ngSanitize',
'markdown'
])
.config(function($routeProvider) {
$routeProvider
.when('/', {
@smykes
smykes / nfl.json
Last active November 16, 2023 14:23
A JSON string of all 32 NFL football teams including city, name, conference, division, and abbreviation.
[
{
"city": "Arizona",
"name": "Cardinals",
"abr": "ARI",
"conf": "NFC",
"div": "West"
},
{
"city": "Atlanta",
@smykes
smykes / main.js
Created June 15, 2013 14:27
Question is in a comment of line 25 of models.js.
var AppRouter = Backbone.Router.extend({
routes: {
"" : "list",
"clients/:id" : "clientDetails"
},
initialize: function () {
},
list: function(page) {
$('#header').html(new HeaderView().render().el);