0
I have a component called footer, it contains the following code:
footer.html
<ion-footer>
<ion-toolbar color="black-light">
<button ion-button color="light" full clear>{{btnFooter}}</button>
</ion-toolbar>
</ion-footer>
footer.
import { Component, Input } from '@angular/core';
import { CadastroContaPage } from '../pages/cadastro-conta/cadastro-conta';
@Component({
selector: 'footer',
templateUrl: 'footer.html'
})
export class FooterComponent {
//INSERIR OS ELEMENTOS NOS BOTÕES
@Input() btnFooter: string;
constructor() {}
}
This component will be on several pages, so I can’t put a fixed link to it, because on each page there will be a different link. I have a page called register-account which is Register Account, I would like the footer component on the login-account page changes to the sign-up-account page as soon as you click on the component.