Guest User

Untitled

a guest
Dec 15th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
  2.  
  3. @NgModule({
  4. imports: [CommonModule, FormsModule, HttpClientModule, RouterModule.forChild(groupRoutes), BsDropdownModule.forRoot()],
  5. })
  6.  
  7. <div class="btn-group" dropdown>
  8. <button dropdownToggle type="button" class="btn btn-secondary dropdown-toggle">
  9. {{selectedRecipientSource.name}}<span class="caret"></span>
  10. </button>
  11. <ul *dropdownMenu class="dropdown-menu" role="menu">
  12. <li role="menuitem" *ngFor="let recipientSrc of groupViewModel.allRecipients"><a class="dropdown-item" (click)="selectRecipient(recipientSrc)">{{recipientSrc.name}}</a></li>
  13. </ul>
  14. <input type="button" value="Добавить получателя" (click)="saveGroupRecipient()" class="btn btn-primary" style="margin-left:10px" />
  15. </div>
Add Comment
Please, Sign In to add comment