1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 19:42:01 +02:00

Refactoring to use Google Angular Best Practices.

This commit is contained in:
Gunther Brunner 2014-02-18 19:26:30 +09:00
parent 6df8ed7184
commit 80d0bb7ad2
12 changed files with 29 additions and 49 deletions

View file

@ -0,0 +1,12 @@
require('angular')
require('./device-list.css')
module.exports = angular.module('device-list', [])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/devices', {
template: require('./device-list.jade'),
controller: 'DeviceListCtrl'
})
}])
.controller('DeviceListCtrl', require('./device-list-controller'));