Created
July 7, 2017 07:41
-
-
Save ypcode/34588175d4445fd3b9d2d25c2bbfcbc8 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
import pnp from "sp-pnp-js"; | |
//... | |
public onInit(): Promise<void> { | |
return super.onInit().then(_ => { | |
pnp.setup({ | |
spfxContext: this.context | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment