Created
November 12, 2018 09:13
-
-
Save AsishP/b7044ff70c002a5d32228f1f24a553cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPFx context init below | |
public onInit(): Promise<void> { | |
return super.onInit().then(_ => { | |
// other init code may be present | |
sp.setup({ | |
spfxContext: this.context | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment