Issue #2704Opened April 6, 2020by sdrebel2 reactions

Compoentn getScript

Question

Hi @artf ,

The way we get component.getStyle() do we have any method to get scripts or events attached to the component?

Answers (3)

pouyamiralayiApril 7, 20202 reactions

Hi @sdrebel you can retrieve any model property by calling get function:

component.get('script')

Cheers!

sdrebelApril 9, 20200 reactions

@pouyamiralayi will this give if scripts are in jquery? I tried this it returned null.

pouyamiralayiApril 9, 20200 reactions

@sdrebel if you have specified any script, it should return a string containing the script code. Cheers!

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.