Calling a one-button route is not working

1

I need, when I create an Operator, after creating it, it should call another screen, the list of operators. Turns out it's not working. Is the route called operator and how do I put this button?

<button type="submit" class="btn btn-primary">Criar</button>

I've tried this:

<button type="submit" class="btn btn-primary"><a routerLink="/operator"></a>Criar</button>

and so

<button type="submit" class="btn btn-primary" routerLink="/operator">Criar</button>
    
asked by anonymous 26.07.2018 / 15:50

1 answer

2

The correct form is this:

<button type="submit" class="btn btn-primary"><a routerLink="/operator">Criar</a></button>
    
26.07.2018 / 16:08