pageView-controller-genesis-angular-gulp.js
.controller('pageView', ['$scope', '$http', '$stateParams', function ($scope, $http, $stateParams) {
console.log('pageView running');
$http({
url: 'https://n8finch.dev/wp-json/wp/v2/pages?filter[name]=' + $stateParams.slug,
cache: true
}).success(function (res) {
$scope.post = res[0];
});
}])