Angular 6 Special characters (Accentuation and cedilla)

0

Good evening, Anyone know how to solve the problem with accentuation in Angular 6?

    import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  title = 'Minha Primeira Aplicação' ;
}

It looks like this:

Welcome to My First Application!

Solved:

At the time of saving in Visual Studio you have to specify what to save with UTF-8 signed and unsigned. (File> Save as> Save with encoding)

    
asked by anonymous 15.06.2018 / 07:33

1 answer

0

add the tag

 <meta charset="utf-8">

Inside the head of your index.html file

    
15.06.2018 / 10:06