AngularJS, how to bind a variable to concatenation of two other bound variables?

后端 未结 4 2333
情书的邮戳
情书的邮戳 2021-02-20 09:01

I am new to AngularJS and trying to build an AngularJS practice app, in which, the user will concatenate a url from multiple inputs, i.e. protocol, domain, path, param1, param2,

4条回答
  •  逝去的感伤
    2021-02-20 09:10

    Just use this binding expression to concatenation of more than two scope variables in HTML.

    {{UserData.FirstName + ' ' + UserData.MiddleName + ' ' + UserData.LastName}}
    

    If you want to do this inside any attribute, Just write like this:

    
    

提交回复
热议问题