I have a department query page and I have the button in it. This page is a view that has been defined as a route and is called within my index.html.
I would like to know how it is possible to click the register button, change the view that I am to the one that I will use.
Do I have to use any specific angled service?
These are my routes:
$routeProvider
.when("/cadastro/produtos", {
templateUrl: 'view/consultaDeProdutos.html',
controller: 'productRegisterController as vm'
})
.when("/cadastro/categorias", {
templateUrl: 'view/consultaDeCategorias.html',
controller: 'categoryRegisterController as vm'
})
.when("/cadastro/departamentos", {
templateUrl: 'view/consultaDeDepartamentos.html',
controller: 'departmentRegisterController as vm'
})
.when("/cadastro/departamentos/salvar", {
templateUrl: 'view/cadastroDeDepartamentos.html',
controller: 'departmentRegisterController as vm'
})
I want the route / registration / departments go to / register / departments / save
via a button