This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="es" class="h-100" data-lt-installed="true"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<meta name="description" content=""> | |
</head> | |
<body> | |
<div class="wrapper"> | |
<p>El contenido de tu web aquí.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
min-height: 100%; | |
position: relative; | |
} | |
body { | |
margin: 0; | |
} | |
.wrapper { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="es" class="h-100" data-lt-installed="true"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<meta name="description" content=""> | |
<style> | |
html { | |
min-height: 100%; | |
position: relative; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let ciudades = [ | |
{nombre: 'CDMX', poblacion: 3792621}, | |
{nombre: 'Guadalajara', poblacion: 8175133}, | |
{nombre: 'Monterrey', poblacion: 2695598}, | |
{nombre: 'Puebla', poblacion: 2099451}, | |
{nombre: 'Pachuca', poblacion: 1526006} | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let ciudadesResultado = ciudades.filter(function (ciudad) { | |
return ciudad.poblacion > 3000000; | |
}); | |
console.log(ciudadesResultado); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let ciudadesResultado = ciudades.filter(ciudad => ciudad.poblacion > 3000000); | |
console.log(ciudadesResultado); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dias = ['lunes','martes','miércoles','jueves','viernes']; | |
var diasMayusculas = dias.map(function(dia){ | |
return dia.toUpperCase(); | |
}); | |
console.log(diasMayusculas); //resultado: ["LUNES", "MARTES", "MIÉRCOLES", "JUEVES", "VIERNES"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version":"1.0.0" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class AppComponent implements OnInit { | |
private config: {version: string}; | |
ngOnInit() { | |
this.config = require('./../assets/config.json'); | |
console.log(this.config.version); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class AppComponent implements OnInit { | |
constructor(private httpClient: HttpClient) { | |
} | |
private config: {version: string}; | |
ngOnInit() { | |
this.config = require("./../assets/config.json"); | |
console.log(this.config.version); | |
const headers = new HttpHeaders() | |
.set('Cache-Control', 'no-cache') |
OlderNewer