Estudiante de ultimos semestres de ingenieria de sistemas
Desarrolador WEB full stack
BOTOOMng new [nombre del proyecto]
correr el servidor del proyecto
ng serve
npm start
componentes
ng generate component [directorio]/[nombre del componente]
servicios
ng generate service [directorio]/[nombre del componente]
pipes
ng generate pipe [directorio]/[nombre del componente]
import {RouterModule} from '@angular/router';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NgModule } from '@angular/core';
// rutas
import {APP_ROUTING} from './app.routes';
imports: [
BrowserModule,
HttpClientModule,
FormsModule,
ReactiveFormsModule ,
RouterModule.forRoot(APP_ROUTING, {useHash: true})
],
app.router.ts
import { Routes } from '@angular/router';
import { HomeComponent } from './components/home/home.component';
import { ResposableComponent } from './components/resposable/resposable.component';
const APP_ROUTES: Routes = [
{ path: 'home', component: HomeComponent },
{ path: 'responsable', component: ResposableComponent },
// { path: 'artist/:id', component: ArtistaComponent },
{ path: '', pathMatch: 'full', redirectTo: 'home' },
{ path: '**', pathMatch: 'full', redirectTo: 'home' }
];
export const APP_ROUTING = (APP_ROUTES);
routerLinkActive="active"
Responsable
Ng-If
Ng-For
[(ngModel)]="nombres"
npm i angular-cli-ghpages --save-dev
ng build --prod --base-href "https://[usuario github].github.io/[nombre del repo]/"
npx angular-cli-ghpages --dir=dist/[nombre del proyecto]