Reorganizes the project with clean MVC structure
This commit is contained in:
12
webapp/js/views/search/search.js
Normal file
12
webapp/js/views/search/search.js
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('satbd.satellite.bar.views.search',[
|
||||
'ngRoute'
|
||||
]).config(function($routeProvider) {
|
||||
$routeProvider.when('/search', {
|
||||
templateUrl: 'js/views/search/search.html',
|
||||
controller: 'SearchCtrl'
|
||||
});
|
||||
}).controller('SearchCtrl', function($scope,$routeParams) {
|
||||
$scope.terms=$routeParams.q;
|
||||
});
|
||||
Reference in New Issue
Block a user