html - use model attribute from spring controller in ng-show -
using spring boot,angualrjs html view
using in index.html
<a ng-show="permission=='write'">
from spring boot controller returning permission in model
@requestmapping(value = "/", method = requestmethod.get) public string getindex(model model) { model.addattribute("permission","write"); return "index"; }
tab tag not visible in view.while console has no error. how use model attribute value in ng-show?
in javascript, while checking equals condition should ===
change ng-show <a ng-show="permission==='write'">
also there similar post, have on how model attribute value in angularjs spring controller
Comments
Post a Comment