Search Posts

Category: templates

Spring boot template might not exist or might not be accessible by any of the configured Template Resolvers

Error resolving template “producaoPrimaria”, template might not exist or might not be accessible by any of the configured Template Resolvers I got this erros when i try to access this tamplate i using angularJs in my front-end the method that call template is this $scope.saude = function(idSistemaSelecionado) { idEntidadeSelecionada = $location.$$search.dataBase; $q.when(); if(idSistemaSelecionado ==502){ location.href = “arrecadacao/producaoPrimaria/producaoPrimaria?dataBase=” + idEntidadeSelecionada + “&app=” + idSistemaSelecionado; } }; and my appController app.config(function($routeProvider, $locationProvider,$qProvider){ $qProvider.errorOnUnhandledRejections(false); $routeProvider .when(“/producaoPrimaria”, {templateUrl:’/arrecadacao/producaoPrimaria/producaoPrimariaPaginas/inicioPp.html’, controller:’inicioPpController’}) […]

Angular 4: Conditional parent template

On Angular 4, assuming that I have 5 components/routes and certain sets use specific parent templates, e.g.: a.component –> parent component b.component, c.component –> parent2 component e.component, f.component –> parent3 component Currently, the parent template is handled by app.component and child components are rendered inside a tag, say, <router-outlet>. My questions is, is there a way to make the parent template conditional based on the rules stated above? Thank you. Source: AngularJS