Skip to content

Fix lazy loading in Tab component #1827

@ESadouski

Description

@ESadouski

Issue type

I'm submitting a ... (check one with "x")

  • bug report
  • feature request

Issue description

Current behavior:
Lazy loading doesn't work. Content loaded even if it's not active

Expected behavior:
When tab marked as lazy-loaded it should be initialized only when its active

Steps to reproduce:
Mark tab as lazy=true

Related code:

  @Input()
  set lazyLoad(val: boolean) {
    this.init = convertToBoolProperty(val);
  }

Other information:

npm, node, OS, Browser

<!--
Node, npm: `node --version` and `npm --version`
OS: Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)
Browser: Chrome/Safari/Firefox/etc?
-->

Angular, Nebular

<!--
Check your `package-lock.json` or locate a `package.json` in the `node_modules` folder.
-->

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions