I have a dilemma where I have linked all my CSS and JS files in the index.html file, but subpages are located in a templates directory. When using $window.location.href, only a plain HTML page is returned without any CSS styles.
The page renders fine when clicking a button, but how can I fix this issue?
.controller('HomepageCtrl', function($scope, $window,$stateParams, $timeout, ionicMaterialInk, ionicMaterialMotion) {
// Set Header
$scope.got = function(){
$window.location.href = '/templates/share.html';
}
$scope.$parent.hideHeader();
})
Any help would be greatly appreciated. Thank you!