Skip to content

Instantly share code, notes, and snippets.

@paintsis
Last active September 3, 2024 02:17
Show Gist options
  • Select an option

  • Save paintsis/6f783f81ce443d6e067da4b67dccf9d5 to your computer and use it in GitHub Desktop.

Select an option

Save paintsis/6f783f81ce443d6e067da4b67dccf9d5 to your computer and use it in GitHub Desktop.

Windows habilitar habilitar en Power Shell la ejecución de script

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned

Instalar Angular como admnistrador o como ROOT

npm install -g @angular/cli

Crea el proyecto.

ng new <name>

Crear proyecto usando module

ng new --no-standalone <name>

Crea o genera el modulo para home

ng g m <name> --routing

Crea o general el componente para el home

ng g c <name> --inline-style --skip-tests

crea componente y lo importa en un modulo en especifico

ng g c <name> --inline-style --skip-tests --module <module>

crear modulo y rutas - lazy load

ng g m modules/search --routing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment