diff --git a/apps/codelab/src/app/app-routing.module.ts b/apps/codelab/src/app/app-routing.module.ts index 51db37503..17acbec9b 100644 --- a/apps/codelab/src/app/app-routing.module.ts +++ b/apps/codelab/src/app/app-routing.module.ts @@ -1,6 +1,7 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { LoginComponent } from './components/login/login.component'; +import { BasicsComponent } from './components/basics/basics.component'; import { NotFoundComponent } from './components/not-found/not-found.component'; import { AdminGuard } from './shared/services/guards/admin-guard'; import { LoginGuard } from './shared/services/guards/login-guard'; @@ -26,6 +27,10 @@ const routes: Routes = [ loadChildren: () => import('./sync/sync.module').then(m => m.SyncAdminModule) }, + { + path: 'codelab', + component: BasicsComponent + }, { path: '**', component: NotFoundComponent } ]; diff --git a/apps/codelab/src/app/app.module.ts b/apps/codelab/src/app/app.module.ts index 60dcb8a02..e23954e18 100644 --- a/apps/codelab/src/app/app.module.ts +++ b/apps/codelab/src/app/app.module.ts @@ -15,6 +15,7 @@ import { NotFoundModule } from './components/not-found/not-found.module'; import { MatButtonModule } from '@angular/material/button'; import { DirectivesModule } from './directives/directives.module'; import { HttpClientModule } from '@angular/common/http'; +import { MaterialCodelabModule } from './codelabs/angular/material/material.module'; @NgModule({ imports: [ @@ -28,6 +29,7 @@ import { HttpClientModule } from '@angular/common/http'; AngularFireDatabaseModule, NotFoundModule, MatButtonModule, + MaterialCodelabModule, DirectivesModule ], declarations: [AppComponent], diff --git a/apps/codelab/src/app/components/basics/basics.component.html b/apps/codelab/src/app/components/basics/basics.component.html new file mode 100644 index 000000000..df6a0fe61 --- /dev/null +++ b/apps/codelab/src/app/components/basics/basics.component.html @@ -0,0 +1,94 @@ +
+ Angular is a + development platform for building mobile and desktop apps. Angular + lets you extend HTML's syntax to express your apps’ components + clearly and succinctly. Angular's binding and dependency injection + eliminate much of the code you would otherwise have to write. +
+ ++ Learn one way to build apps with Angular and then reuse your code and + abilities to build apps for any deployment target, such as web, mobile web, + native mobile, and native desktop. +
++ Achieve the maximum speed possible on the web platform today, and take it + further, with Web Workers and server-side rendering. Angular puts you in + control of scalability. Meet huge data requirements by building data models + using RxJS, Immutable.js, or another push model. +
++ Build features quickly with simple, declarative templates. Extend the + template language with your own components and use a wide array of existing + components to build your UI. Get immediate Angular-specific help and + feedback with nearly every IDE (integrated development environment) and + editor. All this comes together so you can focus on building amazing apps + rather than trying to make the code work. +
++ From prototype through global deployment, Angular delivers the productivity + and scalable infrastructure that support Google's largest apps. +
+ ++ Learn more at Angular.io! +
++ In this codelab, you will start working on MewTube, a video social + network for cats only. (No dogs allowed!) +
++ Familiarity with the basics of + TypeScript is + highly recommended. Check out + the TypeScript codelab. +
++ After completing this codelab, you’ll understand the basics of Angular and + will be able to create your first Angular app. +
+ ++ This codelab is broken down into four milestones. Each milestone takes about + 30 minutes to complete. +
+ +Start by clicking a milestone name:
++ or + Launch the codelab +
+