What are lightning component library - mock data import

1.1K    Asked by AnkitChauhan in Salesforce , Asked on Aug 19, 2021

I see this line of code in the lightning component library.

How do I access this library component? I tried search for aura:import in the developer guide and could not find it's usage? Can you please help? Thanks in advance.

Answered by Anne Bell

Lightning library Components is the Salesforce (external) implementation of that new breed of lightweight frameworks built on web standards. It leverages custom elements, templates, shadow DOM, decorators, modules, and other new language constructs available in ECMAScript 7 and beyond. aura:import is referenced by aura:library, which is part of the underlying framework for ltng:require. It is not part of the standard Lightning components, and cannot be used by developers. If you're interested, you can read more about it in aura:library, but this only matters if you're using Aura directly, and not developing in Lightning. None of this is for importing data, it's for importing JavaScript files into components.



Your Answer

Interviews

Parent Categories