Skip to content

Commit

Permalink
changing file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ajbraus committed May 21, 2015
1 parent ed04a19 commit a7af565
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Expand Up @@ -5,8 +5,8 @@ angular
]).config(function ($routeProvider, $locationProvider) {
$routeProvider
.when('/', {
templateUrl: 'home.html',
controller: 'HomeCtrl'
templateUrl: 'question-index.html',
controller: 'QuestionIndexCtrl'
});

$locationProvider.html5Mode({
Expand Down
4 changes: 4 additions & 0 deletions app/assets/javascripts/controllers/questionCtrls.js
@@ -0,0 +1,4 @@
angular.module('rangular')
.controller('QuestionIndexCtrl', function ($scope) {
$scope.things = ['Angular', 'Rails 4.1', 'Working', 'Together!!'];
});
4 changes: 0 additions & 4 deletions app/assets/javascripts/ng-app/controllers/home.js

This file was deleted.

1 change: 0 additions & 1 deletion app/assets/templates/home.html.erb

This file was deleted.

1 change: 1 addition & 0 deletions app/assets/templates/question-index.html.erb
@@ -0,0 +1 @@
<h1>Questions</h1>

0 comments on commit a7af565

Please sign in to comment.