I'm reading ng-book 2 on Angular 2 and in one of the exercises a question arose. When setting up my first code component it does not display the title
and link
values in the console, but the second works perfectly.
The first one uses single quotation marks. ''. The second uses accentuation, . What's the difference and why not?
// Não Funciona
addArticle(title: HTMLInputElement, link: HTMLInputElement): boolean{
console.log('${title.value} ${link.value}');
return false;
}
// Funciona
addArticle(title: HTMLInputElement, link: HTMLInputElement): boolean{
console.log('${title.value} ${link.value}');
return false;
}