Forum Discussion
Mike Jansen
Jun 14, 2017Iron Contributor
Sharepoint framework spfx > get weburl
"In the old days" I would use something like: var url = _spPageContextInfo.webServerRelativeUrl; To get the URL of my SharePoint site. Now I try to do the same thing in SPFX like: this.context.pa...
Mike Jansen
Jun 19, 2017Iron Contributor
Hi Pieter Veenstra,
Another newbie question. Now I have my url available within the .ts file. I do need it in my blabla.js file.
How can I pass the value to my .js file? Is there some kind of export function?
Thanks, Mike
Jun 19, 2017
Hi Mike Jansen,
Why wouldn't you pass the parameters in like you would do with functions?
functionName(parameter1, parameter2, parameter3) { code to be executed }
- Mike JansenJun 19, 2017Iron Contributor
Pieter Veenstra I did that.Must be a problem with my references because it does not seem to find my function.
I'll check my code again. Guess have taken a too complex example for my first project ;-)