[Solved] Add list of selected items in select menu

Below code will make your dropdown multiple select and will display list of slected values from dropdown <body class=”ng-cloak” ng-controller=”DemoCtrl as ctrl”> Selected:<p ng-repeat=”item in ctrl.person.selected”> {{item.name}}</p> <form class=”form-horizontal”> <fieldset> <legend>ui-select inside a Bootstrap form</legend> <div class=”form-group”> <label class=”col-sm-3 control-label”>Default</label> <div class=”col-sm-6″> <ui-select ng-model=”ctrl.person.selected” theme=”bootstrap” multiple=”true”> <ui-select-match placeholder=”Select or search a person in the list…”>{{$item.name}}</ui-select-match> … Read more

[Solved] Submit child component from parent component modal ok button in angular [duplicate]

each time you wanna handle action in child component from parent component like submit you have two choice one create service and subscribe to the actionStatus property export class CtrlActionService { private actionStatus = new Subject<any>(); constructor() {} //ctrl submit action public callAction() { this.actionStatus.next(true); } public getAction(): Observable<boolean> { return this.actionStatus.asObservable(); } } parent.component.ts … Read more