How to call multiple methods on a button click using Angular 5?

后端 未结 3 2146
北海茫月
北海茫月 2021-02-19 21:06

i am using angular 5 and facing a problem. i want to submit (click) event and call two or multiple method one bye one. Please give me idea or solution so that i can submit a (c

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-19 21:41

    
    

    make one function and call all the function in that

    function 1

    abc(){}
    

    function 2

    bcde(){}
    

    call both in common function

     callall(){
    
            this.abc()
            this.bcde() 
    }
    

提交回复
热议问题