|
@@ -9,6 +9,10 @@ app.config(function($routeProvider, $locationProvider) {
|
|
|
templateUrl: 'main.html',
|
|
templateUrl: 'main.html',
|
|
|
controller: 'main'
|
|
controller: 'main'
|
|
|
})
|
|
})
|
|
|
|
|
+ .when("/keywords", {
|
|
|
|
|
+ templateUrl: 'keywords.html',
|
|
|
|
|
+ controller: 'keywords'
|
|
|
|
|
+ })
|
|
|
.when("/sources", {
|
|
.when("/sources", {
|
|
|
templateUrl: 'sources.html',
|
|
templateUrl: 'sources.html',
|
|
|
controller: 'sources'
|
|
controller: 'sources'
|
|
@@ -177,3 +181,16 @@ app.controller('main', function($scope,$http,$sce) {
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+app.controller('keywords', function($scope,$http,$location) {
|
|
|
|
|
+ $scope.keywords=[];
|
|
|
|
|
+ $http.get("/pymnts/keywords").then(
|
|
|
|
|
+ function(data){
|
|
|
|
|
+ $scope.keywords = data;
|
|
|
|
|
+ },
|
|
|
|
|
+ function(data){
|
|
|
|
|
+ }
|
|
|
|
|
+ );
|
|
|
|
|
+});
|