'use strict';

var mainApp = angular.module('mainApp', ['ngResource']);
var indexApp = angular.module('indexApp', ['ngResource']);

'use strict';

var indexApp = angular.module('indexApp', ['ngResource', 'ngRoute']).
    config(function ($routeProvider) {
        $routeProvider.when('/protocol/:protocolId', {
            templateUrl: '/templates/protocol.jsp',
            controller: 'ProtocolController'
        });
        $routeProvider.when('/protocols', {
            templateUrl: '/templates/protocolList.jsp',
            controller: 'IndexController'
        });

    });
Add routing for list and single protocol views
Add routing for list and single protocol views
