3
I’m using the Angularjs Material Dialog and it’s okay, but when I put the textContent it returns the following error:
CONSOLE ERROR
 $mdDialog.confirm(...).title(...).textContent is not a function
JS
var confirm = $mdDialog.confirm()
              .title('Você tem certeza que deseja excluir esta categoria?')
              .textContent('Esta ação é irreversível')
              .ariaLabel('Excluir')
              .targetEvent(ev)
              .ok('Sim tenho certeza!')
              .cancel('Não excluir');
        $mdDialog.show(confirm).then(function() {
            // ok
        }, function() {
          // cancelado
        });
Why this textContent is not accepted? The example is the same as the Angular JS Material.

Your Angularjs/Material is the same version of the example on the site?
– Lucas Fontes Gaspareto
You are probably using a version that does not support the
.textContent– DiegoAugusto
Yes I was with an earlier version, I’m getting used to the change that Angular has subsequently rs
– Shelon
@user3801617 get ready for more changes, Angular 2.0 is coming rs. Solved the problem?
– DiegoAugusto
@Shelon In all fairness, who changed was mdDialog, not Angularjs itself. But Techies is fully correct, 2.0 is completely different. =)
– OnoSendai
@Techies All settled, thank you
– Shelon