####属性の参照 (cmpはコンポーネントオブジェクト)
<aura:attribute name="attrName" type="String" />
cmp.get('v.attrName');
####属性のセット
cmp.set('v.attrName', 'value');
####カスタムラベルの取得
var staticLabel = $A.get("$Label.c.task_mode_today");
####ログインユーザーIDの取得
$A.get("$SObjectType.CurrentUser.Id");
More than 5 years have passed since last update.
Lightningコンポーネント (Controller)
Last updated at Posted at 2017-01-30
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme