Topic: Add Pipe in select Options
                  
                  exist-ui
                  pro
                  asked 8 years ago
                
<mdb-select placeholder="Select Amount" class="colorful-select dropdown-primary" [options]="amountOptions" formControlName="amount"> </mdb-select>
for example i'd like to add a currency pipe di display an option that corresponds with amount that has a currency on it.
                      
                        Add comment
                      
                    
                  
                
                      
                      Witold Tkaczyk
                      free
                        answered 8 years ago
                    
                    Hi exit-ui,
 
I'm not sure if I understand you right. You cant inject pipe in a template but you can do something like this:
                    
                    
                    
                    
                  
                  
                amountOptions  = [{
    value: (already modyfied amount);
    ...: '...'
}]
let me know if that is solution you looking for.
                    
                      FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
              Answered
Specification of the issue
              - ForumUser: Pro
 - Premium support: No
 - Technology: MDB Angular
 - MDB Version: -
 - Device: -
 - Browser: -
 - OS: -
 - Provided sample code: No
 - Provided link: No
 
Tags