我希望ng-include具有类似“客户”+ {{action}} + \'的价值.html \'
def create_jwt_token():
payload = {
"iat": int(time.time())
}
shared_key = REST_API_TOKEN
payload['email'] = EMAIL
payload['password'] = PASSWORD
jwt_string = jwt.encode(payload, shared_key)
encoded_jwt = urllib.quote_plus(jwt_string) # url-encode the jwt string
return encoded_jwt
})
如何组合ng-include硬编码值和范围值。
谢谢,
奥马尔
答案 0 :(得分:1)
你的ng-include应该如下所示。
ng-include="action + \'.html\'"></div>',