Created
December 21, 2019 04:35
-
-
Save tisufa/cdb4069a290cd77b9b61e72a9c43930e to your computer and use it in GitHub Desktop.
Example Component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, ViewEncapsulation } from '@angular/core'; | |
import { AppPopupWorkflowService } from 'app/core/services/app-popup/app-popup-workflow.service'; | |
import { Workflow } from 'app/core/bean/workflow'; | |
@Component({ | |
templateUrl: 'example.component.html', | |
styleUrls: ['./example.component.scss'], | |
encapsulation: ViewEncapsulation.None | |
}) | |
export class ExampleComponent { | |
constructor(private appPopupWorkflowService: AppPopupWorkflowService) { } | |
onInit() { } | |
private doOpenWorkflowPopup(): void { | |
const filter = { organizationId: 1 }; | |
this.appPopupWorkflowService.open('/app-popup-workflow/index-workflow-condition', null, filter).subscribe((workflow: Workflow) => { | |
// do some logic here, set data value or set formGroup value | |
console.log(workflow); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment