This file contains hidden or 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
type TemplateType = { | |
template: string; | |
id: string; | |
}; | |
function withTemplate(templateObj: TemplateType) { | |
return function (constructor: any) { | |
let el = document.getElementById(templateObj.id); | |
let p = new constructor(); | |
if (el) { |
This file contains hidden or 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
// send POST request to /wp-json/jwt-auth/v1/token voi data | |
{ | |
"username" : "admin", | |
"password": "123456" | |
} | |
// ket qua nhan ve se gom truong token |
NewerOlder