let msg: test;
let msg2 : test3;
For Ex: alert(msg + '\n'+ msg2);
First and second line
like wise shown the matsnackbar in angular ?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sivakumar KonetiRank #1,556 · 1K reputationPosted Jul 3, 2019, 9:15 PM EDT
Muthu KumarRank #935 · 2.2K reputationPosted Aug 21, 2019, 9:47 PM EDT
Here is an answer for you.
set a custom panelClass option that applies white-space: pre-wrap or similar.
Refered here,
https://github.com/angular/components/issues/11239