Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ({
- init : function init(component, event, helper) {
- var injectionService = component.find('injectionService');
- injectionService.getComponentName()
- .then($A.getCallback(function(componentName){
- $A.createComponent(componentName,{
- accountId : component.get('v.recordId'),
- contact: component.get('v.cont'),
- "aura:id" : "injectedComponent"
- }
- , function (contentComponent, status, error) {
- if (status === 'SUCCESS') {
- component.set('v.injectedComponent', contentComponent);
- } else {
- $A.log(error);
- }
- });
- }))
- }
- })
Add Comment
Please, Sign In to add comment