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:
parent
6df8ed7184
commit
80d0bb7ad2
12 changed files with 29 additions and 49 deletions
12
res/app/components/control/index.js
Normal file
12
res/app/components/control/index.js
Normal 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'));
|
Loading…
Add table
Add a link
Reference in a new issue