Changing tabs programatically

Hi there

I need to change my tab programatically.

According to the documentation

this can be done by calling the select() on the tabs instance.

I get the error however that select does not exist on type Tabs

  @ViewChild('myTabs') tabRef: Tabs;

changeSlectedIndex(): void { squiggly explaining does not exist on type Tabs


Am I missing something?

Thank you

It depends where you are in your app:

If you are in a child component of the tab --> you need to do it this way:

switchTabs() {

Cool, thank you…i did go that route in the end

can we change tab in app.component(bootstrap component)?