1
I have a department consultation page and I have the sign-up button on it. This page is a "view" that has been set to route and is called within my index.html.
Gosaria to know how it is possible to click on the sign up button, change the view I am to the registration view I will use.
I have to use some specific angular 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 to go to /registration/departments/save
through a button
if you have any code?
– novic
Yeah, I already added it to the question
– Henrique
Why do you have vm alias for all controllers? this is not wrong?
– novic
What do you mean for all controllers? I use an alias not to use $Scope
– Henrique
Henry puts all the code
– novic