Skip to content

Instantly share code, notes, and snippets.

@suneo3476
Created April 17, 2014 13:04
Show Gist options
  • Save suneo3476/10981831 to your computer and use it in GitHub Desktop.
Save suneo3476/10981831 to your computer and use it in GitHub Desktop.
app.js
'use strict';
angular
//元々挿入されていたコード
.module('gotestappApp', [
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute'
])
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/main.html',
controller: 'MainCtrl'
})
.otherwise({
redirectTo: '/'
});
})
//以下より追加の指示があったコード
.controller('MainCtrl', function ($scope) {
$scope.favorites = [
'sushi',
'yakiniku',
'melon'
];
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment