I'm almost new into working with aura controller implementing javascript.
My question is if I can set action.setParams({"variable" : "{!User.ContactId}"});
or do I need to make a workaround to accomplish this.
I'm asking this cause my button worked like this OnClick Javascript:
var contactId = "{!User.ContactId}";
You can define an attribute in component and access that attribute inside js
while accessing any attribute
component.get ('v.User');
herev.
represents view