Angular JS

<!DOCTYPE html> <html lang="es"> <head> <title>Angular JS</title> <script src="js/angular.min.js"></script> </head> <body ng-app=""> <div ng-init="titulo='Angular JS';entrada='CONH_FormatoHorarioId'"> <h2 ng-bind="titulo"></h2> <span>Entrada: <strong> {{ entrada }}</strong> </span> <p>Es cadena o número?:<strong>{{ entrada.isString()? "Es cadena" : entrada.isNumber()? "Es numero" : "Indefinido" }} </strong></p> <p>Salida: <strong> {{ entrada.indexOf("INCH_")==-1? entrada.replace("CONH","INCH").replace("FormatoHorarioId","FormatoHorarioIdn") : entrada }} </strong></p> </div> </body> </html>
Uso de ng-init, ng-bind y funciones de cadena en Angular JS.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.