1
I am working with angular and need to add a message on the screen when being prompted the check code button. An error or success message.
Angular controller
angular.module().controller(){
vm.validarProtocolo = function(){
//exibir mensagem na tela
};
}
Html Code
<input type="text" name="protocolo" ng-model="brSafe.protocolo">
<button ng-click="validarProtocolo()">Validar Protocolo</button>
You need to display the message, but, missed as you wish, have some idea a simple
alert
javascript solves?– novic
I’ve used Alert. It didn’t work.. I need the message to be a text message next to the red spam boot
– alexjosesilva
if you need at which moment, by clicking the button?
– novic
that’s right. When you click on the button this function is called: validate
– alexjosesilva
Detail a little more your need, Alex. "Need to add a message" - Add where? What type? What criteria? The way his question was formulated, Thiago’s answer is fully correct.
– OnoSendai
Thiago answered my question. Something simple and direct!
– alexjosesilva