_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/adev/src/content/tutorials/first-app/steps/13-search/src/app/housing-location/housing-location.component.css_0_583
.listing { background: var(--accent-color); border-radius: 30px; padding-bottom: 30px; } .listing-heading { color: var(--primary-color); padding: 10px 20px 0 20px; } .listing-photo { height: 250px; width: 100%; object-fit: cover; border-radius: 30px 30px 0 0; } .listing-location { padding: 10px 20px...
{ "end_byte": 583, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/13-search/src/app/housing-location/housing-location.component.css" }
angular/adev/src/content/tutorials/first-app/steps/13-search/src/app/housing-location/housing-location.component.ts_0_908
import {Component, Input} from '@angular/core'; import {CommonModule} from '@angular/common'; import {HousingLocation} from '../housinglocation'; import {RouterModule} from '@angular/router'; @Component({ selector: 'app-housing-location', standalone: true, imports: [CommonModule, RouterModule], template: ` ...
{ "end_byte": 908, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/13-search/src/app/housing-location/housing-location.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/13-search/src/app/details/details.component.ts_0_2657
import {Component, inject} from '@angular/core'; import {CommonModule} from '@angular/common'; import {ActivatedRoute} from '@angular/router'; import {HousingService} from '../housing.service'; import {HousingLocation} from '../housinglocation'; import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms'...
{ "end_byte": 2657, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/13-search/src/app/details/details.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/13-search/src/app/details/details.component.css_0_1075
.listing-photo { height: 600px; width: 50%; object-fit: cover; border-radius: 30px; float: right; } .listing-heading { font-size: 48pt; font-weight: bold; margin-bottom: 15px; } .listing-location::before { content: url('/assets/location-pin.svg') / ''; } .listing-location { font-size: 24pt; mar...
{ "end_byte": 1075, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/13-search/src/app/details/details.component.css" }
angular/adev/src/content/tutorials/first-app/steps/13-search/src/assets/location-pin.svg_0_502
<?xml version="1.0" encoding="UTF-8"?> <svg width="20pt" height="20pt" version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <path d="m50 11.602c-15.398 0-27.898 12.5-27.898 27.898 0 5 1.3008 9.6992 3.6016 13.801l2.8984 4.1992 21.398 30.898 21.801-31.398 2.1992-3.1992c2.5-4.1992 3.8984-9 3.8984-14.19...
{ "end_byte": 502, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/13-search/src/assets/location-pin.svg" }
angular/adev/src/content/tutorials/first-app/steps/13-search/src/assets/logo.svg_0_2207
<svg width="151" height="44" viewBox="0 0 151 44" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M6.15532 33.2946C5.25369 33.2946 4.58006 32.5707 4.58006 31.6701V24.0152C4.58006 19.5469 4.35206 20.6276 7.59585 17.4236C21.7317 4.06732 16.2425 4.24744 29.6149 18.054C32.04...
{ "end_byte": 2207, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/13-search/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/13-search/src/assets/logo.svg_2208_5628
<path d="M58.9784 10.0512V32.2205H54.5319V22.7874H45.0353V32.2205H40.5887V10.0512H45.0353V19.1666H54.5319V10.0512H58.9784ZM70.8506 32.5063C69.1567 32.5063 67.6322 32.1358 66.277 31.3947C64.9219 30.6324 63.8526 29.5631 63.0692 28.1868C62.3069 26.8105 61.9258 25.2224 61.9258 23.4226C61.9258 21.6228 62.3175 20.0348 63.100...
{ "end_byte": 5628, "start_byte": 2208, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/13-search/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/13-search/src/assets/logo.svg_5629_6611
24.9789C139.658 24.6613 138.578 24.3331 137.731 23.9943C136.905 23.6555 136.185 23.1368 135.571 22.438C134.979 21.7393 134.682 20.797 134.682 19.6113C134.682 18.6373 134.957 17.748 135.508 16.9434C136.08 16.1387 136.884 15.5035 137.922 15.0377C138.98 14.5719 140.219 14.3389 141.638 14.3389C143.734 14.3389 145.407 14.86...
{ "end_byte": 6611, "start_byte": 5629, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/13-search/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/13-search/src/assets/logo.svg_6612_6619
</svg>
{ "end_byte": 6619, "start_byte": 6612, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/13-search/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/10-routing/README.md_0_4824
# Add routes to the application This tutorial lesson demonstrates how to add routes to your app. <docs-video src="https://www.youtube.com/embed/r5DEBMuStPw?si=H6Bx6nLJoMLaMxkx" /> IMPORTANT: We recommend using your local environment to learn routing. ## What you'll learn At the end of this lesson your application ...
{ "end_byte": 4824, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/10-routing/README.md" }
angular/adev/src/content/tutorials/first-app/steps/10-routing/src/index.html_0_427
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Homes</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> <link href="https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,40...
{ "end_byte": 427, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/10-routing/src/index.html" }
angular/adev/src/content/tutorials/first-app/steps/10-routing/src/main.ts_0_420
/* * Protractor support is deprecated in Angular. * Protractor is used in this example for compatibility with Angular documentation tools. */ import {bootstrapApplication, provideProtractorTestingSupport} from '@angular/platform-browser'; import {AppComponent} from './app/app.component'; bootstrapApplication(AppC...
{ "end_byte": 420, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/10-routing/src/main.ts" }
angular/adev/src/content/tutorials/first-app/steps/10-routing/src/styles.css_0_443
/* You can add global styles to this file, and also import other style files */ * { margin: 0; padding: 0; } body { font-family: 'Be Vietnam Pro', sans-serif; } :root { --primary-color: #605DC8; --secondary-color: #8B89E6; --accent-color: #e8e7fa; --shadow-color: #E8E8E8; } button.primary { padding: 1...
{ "end_byte": 443, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/10-routing/src/styles.css" }
angular/adev/src/content/tutorials/first-app/steps/10-routing/src/app/housinglocation.ts_0_180
export interface HousingLocation { id: number; name: string; city: string; state: string; photo: string; availableUnits: number; wifi: boolean; laundry: boolean; }
{ "end_byte": 180, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/10-routing/src/app/housinglocation.ts" }
angular/adev/src/content/tutorials/first-app/steps/10-routing/src/app/housing.service.ts_0_2977
import {Injectable} from '@angular/core'; import {HousingLocation} from './housinglocation'; @Injectable({ providedIn: 'root', }) export class HousingService { readonly baseUrl = 'https://angular.dev/assets/images/tutorials/common'; protected housingLocationList: HousingLocation[] = [ { id: 0, na...
{ "end_byte": 2977, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/10-routing/src/app/housing.service.ts" }
angular/adev/src/content/tutorials/first-app/steps/10-routing/src/app/app.component.ts_0_529
import {Component} from '@angular/core'; import {HomeComponent} from './home/home.component'; @Component({ selector: 'app-root', standalone: true, imports: [HomeComponent], template: ` <main> <header class="brand-name"> <img class="brand-logo" src="/assets/logo.svg" alt="logo" aria-hidden="tr...
{ "end_byte": 529, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/10-routing/src/app/app.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/10-routing/src/app/app.component.css_0_213
:host { --content-padding: 10px; } header { display: block; height: 60px; padding: var(--content-padding); box-shadow: 0px 5px 25px var(--shadow-color); } .content { padding: var(--content-padding); }
{ "end_byte": 213, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/10-routing/src/app/app.component.css" }
angular/adev/src/content/tutorials/first-app/steps/10-routing/src/app/home/home.component.ts_0_1080
import {Component, inject} from '@angular/core'; import {CommonModule} from '@angular/common'; import {HousingLocationComponent} from '../housing-location/housing-location.component'; import {HousingLocation} from '../housinglocation'; import {HousingService} from '../housing.service'; @Component({ selector: 'app-hom...
{ "end_byte": 1080, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/10-routing/src/app/home/home.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/10-routing/src/app/home/home.component.css_0_746
.results { display: grid; column-gap: 14px; row-gap: 14px; grid-template-columns: repeat(auto-fill, minmax(400px, 400px)); margin-top: 50px; justify-content: space-around; } input[type="text"] { border: solid 1px var(--primary-color); padding: 10px; border-radius: 8px; margin-right: 4px; display:...
{ "end_byte": 746, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/10-routing/src/app/home/home.component.css" }
angular/adev/src/content/tutorials/first-app/steps/10-routing/src/app/housing-location/housing-location.component.css_0_583
.listing { background: var(--accent-color); border-radius: 30px; padding-bottom: 30px; } .listing-heading { color: var(--primary-color); padding: 10px 20px 0 20px; } .listing-photo { height: 250px; width: 100%; object-fit: cover; border-radius: 30px 30px 0 0; } .listing-location { padding: 10px 20px...
{ "end_byte": 583, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/10-routing/src/app/housing-location/housing-location.component.css" }
angular/adev/src/content/tutorials/first-app/steps/10-routing/src/app/housing-location/housing-location.component.ts_0_776
import {Component, Input} from '@angular/core'; import {CommonModule} from '@angular/common'; import {HousingLocation} from '../housinglocation'; @Component({ selector: 'app-housing-location', standalone: true, imports: [CommonModule], template: ` <section class="listing"> <img class="listing...
{ "end_byte": 776, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/10-routing/src/app/housing-location/housing-location.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/10-routing/src/assets/location-pin.svg_0_502
<?xml version="1.0" encoding="UTF-8"?> <svg width="20pt" height="20pt" version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <path d="m50 11.602c-15.398 0-27.898 12.5-27.898 27.898 0 5 1.3008 9.6992 3.6016 13.801l2.8984 4.1992 21.398 30.898 21.801-31.398 2.1992-3.1992c2.5-4.1992 3.8984-9 3.8984-14.19...
{ "end_byte": 502, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/10-routing/src/assets/location-pin.svg" }
angular/adev/src/content/tutorials/first-app/steps/10-routing/src/assets/logo.svg_0_2207
<svg width="151" height="44" viewBox="0 0 151 44" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M6.15532 33.2946C5.25369 33.2946 4.58006 32.5707 4.58006 31.6701V24.0152C4.58006 19.5469 4.35206 20.6276 7.59585 17.4236C21.7317 4.06732 16.2425 4.24744 29.6149 18.054C32.04...
{ "end_byte": 2207, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/10-routing/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/10-routing/src/assets/logo.svg_2208_5628
<path d="M58.9784 10.0512V32.2205H54.5319V22.7874H45.0353V32.2205H40.5887V10.0512H45.0353V19.1666H54.5319V10.0512H58.9784ZM70.8506 32.5063C69.1567 32.5063 67.6322 32.1358 66.277 31.3947C64.9219 30.6324 63.8526 29.5631 63.0692 28.1868C62.3069 26.8105 61.9258 25.2224 61.9258 23.4226C61.9258 21.6228 62.3175 20.0348 63.100...
{ "end_byte": 5628, "start_byte": 2208, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/10-routing/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/10-routing/src/assets/logo.svg_5629_6611
24.9789C139.658 24.6613 138.578 24.3331 137.731 23.9943C136.905 23.6555 136.185 23.1368 135.571 22.438C134.979 21.7393 134.682 20.797 134.682 19.6113C134.682 18.6373 134.957 17.748 135.508 16.9434C136.08 16.1387 136.884 15.5035 137.922 15.0377C138.98 14.5719 140.219 14.3389 141.638 14.3389C143.734 14.3389 145.407 14.86...
{ "end_byte": 6611, "start_byte": 5629, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/10-routing/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/10-routing/src/assets/logo.svg_6612_6619
</svg>
{ "end_byte": 6619, "start_byte": 6612, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/10-routing/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/11-details-page/README.md_0_7579
# Integrate details page into application This tutorial lesson demonstrates how to connect the details page to your app. <docs-video src="https://www.youtube.com/embed/-jRxG84AzCI?si=CbqIpmRpwp5ZZDnu&amp;start=345"/> IMPORTANT: We recommend using your local environment to learn routing. ## What you'll learn At the...
{ "end_byte": 7579, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/11-details-page/README.md" }
angular/adev/src/content/tutorials/first-app/steps/11-details-page/src/index.html_0_427
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Homes</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> <link href="https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,40...
{ "end_byte": 427, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/11-details-page/src/index.html" }
angular/adev/src/content/tutorials/first-app/steps/11-details-page/src/main.ts_0_536
/* * Protractor support is deprecated in Angular. * Protractor is used in this example for compatibility with Angular documentation tools. */ import {bootstrapApplication, provideProtractorTestingSupport} from '@angular/platform-browser'; import {AppComponent} from './app/app.component'; import {provideRouter} fro...
{ "end_byte": 536, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/11-details-page/src/main.ts" }
angular/adev/src/content/tutorials/first-app/steps/11-details-page/src/styles.css_0_443
/* You can add global styles to this file, and also import other style files */ * { margin: 0; padding: 0; } body { font-family: 'Be Vietnam Pro', sans-serif; } :root { --primary-color: #605DC8; --secondary-color: #8B89E6; --accent-color: #e8e7fa; --shadow-color: #E8E8E8; } button.primary { padding: 1...
{ "end_byte": 443, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/11-details-page/src/styles.css" }
angular/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/routes.ts_0_389
import {Routes} from '@angular/router'; import {HomeComponent} from './home/home.component'; import {DetailsComponent} from './details/details.component'; const routeConfig: Routes = [ { path: '', component: HomeComponent, title: 'Home page', }, { path: 'details/:id', component: DetailsCompon...
{ "end_byte": 389, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/routes.ts" }
angular/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/housinglocation.ts_0_180
export interface HousingLocation { id: number; name: string; city: string; state: string; photo: string; availableUnits: number; wifi: boolean; laundry: boolean; }
{ "end_byte": 180, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/housinglocation.ts" }
angular/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/housing.service.ts_0_2978
import {Injectable} from '@angular/core'; import {HousingLocation} from './housinglocation'; @Injectable({ providedIn: 'root', }) export class HousingService { readonly baseUrl = 'https://angular.dev/assets/images/tutorials/common'; protected housingLocationList: HousingLocation[] = [ { id: 0, n...
{ "end_byte": 2978, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/housing.service.ts" }
angular/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/app.component.ts_0_646
import {Component} from '@angular/core'; import {HomeComponent} from './home/home.component'; import {RouterModule} from '@angular/router'; @Component({ selector: 'app-root', standalone: true, imports: [HomeComponent, RouterModule], template: ` <main> <a [routerLink]="['/']"> <header class="br...
{ "end_byte": 646, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/app.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/app.component.css_0_213
:host { --content-padding: 10px; } header { display: block; height: 60px; padding: var(--content-padding); box-shadow: 0px 5px 25px var(--shadow-color); } .content { padding: var(--content-padding); }
{ "end_byte": 213, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/app.component.css" }
angular/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/home/home.component.ts_0_1081
import {Component, inject} from '@angular/core'; import {CommonModule} from '@angular/common'; import {HousingLocationComponent} from '../housing-location/housing-location.component'; import {HousingLocation} from '../housinglocation'; import {HousingService} from '../housing.service'; @Component({ selector: 'app-ho...
{ "end_byte": 1081, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/home/home.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/home/home.component.css_0_746
.results { display: grid; column-gap: 14px; row-gap: 14px; grid-template-columns: repeat(auto-fill, minmax(400px, 400px)); margin-top: 50px; justify-content: space-around; } input[type="text"] { border: solid 1px var(--primary-color); padding: 10px; border-radius: 8px; margin-right: 4px; display:...
{ "end_byte": 746, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/home/home.component.css" }
angular/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/housing-location/housing-location.component.css_0_583
.listing { background: var(--accent-color); border-radius: 30px; padding-bottom: 30px; } .listing-heading { color: var(--primary-color); padding: 10px 20px 0 20px; } .listing-photo { height: 250px; width: 100%; object-fit: cover; border-radius: 30px 30px 0 0; } .listing-location { padding: 10px 20px...
{ "end_byte": 583, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/housing-location/housing-location.component.css" }
angular/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/housing-location/housing-location.component.ts_0_836
import {Component, Input} from '@angular/core'; import {CommonModule} from '@angular/common'; import {HousingLocation} from '../housinglocation'; import {RouterModule} from '@angular/router'; @Component({ selector: 'app-housing-location', standalone: true, imports: [CommonModule, RouterModule], template: ` ...
{ "end_byte": 836, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/housing-location/housing-location.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/details/details.component.ts_0_298
import {Component} from '@angular/core'; import {CommonModule} from '@angular/common'; @Component({ selector: 'app-details', standalone: true, imports: [CommonModule], template: ` <p>details works!</p> `, styleUrls: ['./details.component.css'], }) export class DetailsComponent {}
{ "end_byte": 298, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/11-details-page/src/app/details/details.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/11-details-page/src/assets/location-pin.svg_0_502
<?xml version="1.0" encoding="UTF-8"?> <svg width="20pt" height="20pt" version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <path d="m50 11.602c-15.398 0-27.898 12.5-27.898 27.898 0 5 1.3008 9.6992 3.6016 13.801l2.8984 4.1992 21.398 30.898 21.801-31.398 2.1992-3.1992c2.5-4.1992 3.8984-9 3.8984-14.19...
{ "end_byte": 502, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/11-details-page/src/assets/location-pin.svg" }
angular/adev/src/content/tutorials/first-app/steps/11-details-page/src/assets/logo.svg_0_2207
<svg width="151" height="44" viewBox="0 0 151 44" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M6.15532 33.2946C5.25369 33.2946 4.58006 32.5707 4.58006 31.6701V24.0152C4.58006 19.5469 4.35206 20.6276 7.59585 17.4236C21.7317 4.06732 16.2425 4.24744 29.6149 18.054C32.04...
{ "end_byte": 2207, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/11-details-page/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/11-details-page/src/assets/logo.svg_2208_5628
<path d="M58.9784 10.0512V32.2205H54.5319V22.7874H45.0353V32.2205H40.5887V10.0512H45.0353V19.1666H54.5319V10.0512H58.9784ZM70.8506 32.5063C69.1567 32.5063 67.6322 32.1358 66.277 31.3947C64.9219 30.6324 63.8526 29.5631 63.0692 28.1868C62.3069 26.8105 61.9258 25.2224 61.9258 23.4226C61.9258 21.6228 62.3175 20.0348 63.100...
{ "end_byte": 5628, "start_byte": 2208, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/11-details-page/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/11-details-page/src/assets/logo.svg_5629_6611
24.9789C139.658 24.6613 138.578 24.3331 137.731 23.9943C136.905 23.6555 136.185 23.1368 135.571 22.438C134.979 21.7393 134.682 20.797 134.682 19.6113C134.682 18.6373 134.957 17.748 135.508 16.9434C136.08 16.1387 136.884 15.5035 137.922 15.0377C138.98 14.5719 140.219 14.3389 141.638 14.3389C143.734 14.3389 145.407 14.86...
{ "end_byte": 6611, "start_byte": 5629, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/11-details-page/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/11-details-page/src/assets/logo.svg_6612_6619
</svg>
{ "end_byte": 6619, "start_byte": 6612, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/11-details-page/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/05-inputs/README.md_0_2955
# Add an input parameter to the component This tutorial lesson demonstrates how to create a component `@Input()` and use it to pass data to a component for customization. <docs-video src="https://www.youtube.com/embed/eM3zi_n7lNs?si=WvRGFSkW_7_zDIFD&amp;start=241"/> ## What you'll learn Your app's `HousingLocationC...
{ "end_byte": 2955, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/05-inputs/README.md" }
angular/adev/src/content/tutorials/first-app/steps/05-inputs/src/index.html_0_427
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Homes</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> <link href="https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,40...
{ "end_byte": 427, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/05-inputs/src/index.html" }
angular/adev/src/content/tutorials/first-app/steps/05-inputs/src/main.ts_0_420
/* * Protractor support is deprecated in Angular. * Protractor is used in this example for compatibility with Angular documentation tools. */ import {bootstrapApplication, provideProtractorTestingSupport} from '@angular/platform-browser'; import {AppComponent} from './app/app.component'; bootstrapApplication(AppC...
{ "end_byte": 420, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/05-inputs/src/main.ts" }
angular/adev/src/content/tutorials/first-app/steps/05-inputs/src/styles.css_0_443
/* You can add global styles to this file, and also import other style files */ * { margin: 0; padding: 0; } body { font-family: 'Be Vietnam Pro', sans-serif; } :root { --primary-color: #605DC8; --secondary-color: #8B89E6; --accent-color: #e8e7fa; --shadow-color: #E8E8E8; } button.primary { padding: 1...
{ "end_byte": 443, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/05-inputs/src/styles.css" }
angular/adev/src/content/tutorials/first-app/steps/05-inputs/src/app/housinglocation.ts_0_180
export interface HousingLocation { id: number; name: string; city: string; state: string; photo: string; availableUnits: number; wifi: boolean; laundry: boolean; }
{ "end_byte": 180, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/05-inputs/src/app/housinglocation.ts" }
angular/adev/src/content/tutorials/first-app/steps/05-inputs/src/app/app.component.ts_0_529
import {Component} from '@angular/core'; import {HomeComponent} from './home/home.component'; @Component({ selector: 'app-root', standalone: true, imports: [HomeComponent], template: ` <main> <header class="brand-name"> <img class="brand-logo" src="/assets/logo.svg" alt="logo" aria-hidden="tr...
{ "end_byte": 529, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/05-inputs/src/app/app.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/05-inputs/src/app/app.component.css_0_213
:host { --content-padding: 10px; } header { display: block; height: 60px; padding: var(--content-padding); box-shadow: 0px 5px 25px var(--shadow-color); } .content { padding: var(--content-padding); }
{ "end_byte": 213, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/05-inputs/src/app/app.component.css" }
angular/adev/src/content/tutorials/first-app/steps/05-inputs/src/app/home/home.component.ts_0_1010
import {Component} from '@angular/core'; import {CommonModule} from '@angular/common'; import {HousingLocationComponent} from '../housing-location/housing-location.component'; import {HousingLocation} from '../housinglocation'; @Component({ selector: 'app-home', standalone: true, imports: [CommonModule, HousingL...
{ "end_byte": 1010, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/05-inputs/src/app/home/home.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/05-inputs/src/app/home/home.component.css_0_746
.results { display: grid; column-gap: 14px; row-gap: 14px; grid-template-columns: repeat(auto-fill, minmax(400px, 400px)); margin-top: 50px; justify-content: space-around; } input[type="text"] { border: solid 1px var(--primary-color); padding: 10px; border-radius: 8px; margin-right: 4px; display:...
{ "end_byte": 746, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/05-inputs/src/app/home/home.component.css" }
angular/adev/src/content/tutorials/first-app/steps/05-inputs/src/app/housing-location/housing-location.component.css_0_583
.listing { background: var(--accent-color); border-radius: 30px; padding-bottom: 30px; } .listing-heading { color: var(--primary-color); padding: 10px 20px 0 20px; } .listing-photo { height: 250px; width: 100%; object-fit: cover; border-radius: 30px 30px 0 0; } .listing-location { padding: 10px 20px...
{ "end_byte": 583, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/05-inputs/src/app/housing-location/housing-location.component.css" }
angular/adev/src/content/tutorials/first-app/steps/05-inputs/src/app/housing-location/housing-location.component.ts_0_333
import {Component} from '@angular/core'; import {CommonModule} from '@angular/common'; @Component({ selector: 'app-housing-location', standalone: true, imports: [CommonModule], template: ` <p>housing-location works!</p> `, styleUrls: ['./housing-location.component.css'], }) export class HousingLocation...
{ "end_byte": 333, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/05-inputs/src/app/housing-location/housing-location.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/05-inputs/src/assets/location-pin.svg_0_502
<?xml version="1.0" encoding="UTF-8"?> <svg width="20pt" height="20pt" version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <path d="m50 11.602c-15.398 0-27.898 12.5-27.898 27.898 0 5 1.3008 9.6992 3.6016 13.801l2.8984 4.1992 21.398 30.898 21.801-31.398 2.1992-3.1992c2.5-4.1992 3.8984-9 3.8984-14.19...
{ "end_byte": 502, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/05-inputs/src/assets/location-pin.svg" }
angular/adev/src/content/tutorials/first-app/steps/05-inputs/src/assets/logo.svg_0_2207
<svg width="151" height="44" viewBox="0 0 151 44" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M6.15532 33.2946C5.25369 33.2946 4.58006 32.5707 4.58006 31.6701V24.0152C4.58006 19.5469 4.35206 20.6276 7.59585 17.4236C21.7317 4.06732 16.2425 4.24744 29.6149 18.054C32.04...
{ "end_byte": 2207, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/05-inputs/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/05-inputs/src/assets/logo.svg_2208_5628
<path d="M58.9784 10.0512V32.2205H54.5319V22.7874H45.0353V32.2205H40.5887V10.0512H45.0353V19.1666H54.5319V10.0512H58.9784ZM70.8506 32.5063C69.1567 32.5063 67.6322 32.1358 66.277 31.3947C64.9219 30.6324 63.8526 29.5631 63.0692 28.1868C62.3069 26.8105 61.9258 25.2224 61.9258 23.4226C61.9258 21.6228 62.3175 20.0348 63.100...
{ "end_byte": 5628, "start_byte": 2208, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/05-inputs/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/05-inputs/src/assets/logo.svg_5629_6611
24.9789C139.658 24.6613 138.578 24.3331 137.731 23.9943C136.905 23.6555 136.185 23.1368 135.571 22.438C134.979 21.7393 134.682 20.797 134.682 19.6113C134.682 18.6373 134.957 17.748 135.508 16.9434C136.08 16.1387 136.884 15.5035 137.922 15.0377C138.98 14.5719 140.219 14.3389 141.638 14.3389C143.734 14.3389 145.407 14.86...
{ "end_byte": 6611, "start_byte": 5629, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/05-inputs/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/05-inputs/src/assets/logo.svg_6612_6619
</svg>
{ "end_byte": 6619, "start_byte": 6612, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/05-inputs/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/08-ngFor/README.md_0_3346
# Use *ngFor to list objects in component This tutorial lesson demonstrates how to use `ngFor` directive in Angular templates in order to display dynamically repeated data in a template. <docs-video src="https://www.youtube.com/embed/eM3zi_n7lNs?si=MIl5NcRxvcLjYt5f&amp;start=477"/> ## What you'll learn * You will h...
{ "end_byte": 3346, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/08-ngFor/README.md" }
angular/adev/src/content/tutorials/first-app/steps/08-ngFor/src/index.html_0_427
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Homes</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> <link href="https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,40...
{ "end_byte": 427, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/08-ngFor/src/index.html" }
angular/adev/src/content/tutorials/first-app/steps/08-ngFor/src/main.ts_0_420
/* * Protractor support is deprecated in Angular. * Protractor is used in this example for compatibility with Angular documentation tools. */ import {bootstrapApplication, provideProtractorTestingSupport} from '@angular/platform-browser'; import {AppComponent} from './app/app.component'; bootstrapApplication(AppC...
{ "end_byte": 420, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/08-ngFor/src/main.ts" }
angular/adev/src/content/tutorials/first-app/steps/08-ngFor/src/styles.css_0_443
/* You can add global styles to this file, and also import other style files */ * { margin: 0; padding: 0; } body { font-family: 'Be Vietnam Pro', sans-serif; } :root { --primary-color: #605DC8; --secondary-color: #8B89E6; --accent-color: #e8e7fa; --shadow-color: #E8E8E8; } button.primary { padding: 1...
{ "end_byte": 443, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/08-ngFor/src/styles.css" }
angular/adev/src/content/tutorials/first-app/steps/08-ngFor/src/app/housinglocation.ts_0_180
export interface HousingLocation { id: number; name: string; city: string; state: string; photo: string; availableUnits: number; wifi: boolean; laundry: boolean; }
{ "end_byte": 180, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/08-ngFor/src/app/housinglocation.ts" }
angular/adev/src/content/tutorials/first-app/steps/08-ngFor/src/app/app.component.ts_0_529
import {Component} from '@angular/core'; import {HomeComponent} from './home/home.component'; @Component({ selector: 'app-root', standalone: true, imports: [HomeComponent], template: ` <main> <header class="brand-name"> <img class="brand-logo" src="/assets/logo.svg" alt="logo" aria-hidden="tr...
{ "end_byte": 529, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/08-ngFor/src/app/app.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/08-ngFor/src/app/app.component.css_0_213
:host { --content-padding: 10px; } header { display: block; height: 60px; padding: var(--content-padding); box-shadow: 0px 5px 25px var(--shadow-color); } .content { padding: var(--content-padding); }
{ "end_byte": 213, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/08-ngFor/src/app/app.component.css" }
angular/adev/src/content/tutorials/first-app/steps/08-ngFor/src/app/home/home.component.ts_0_1046
import {Component} from '@angular/core'; import {CommonModule} from '@angular/common'; import {HousingLocationComponent} from '../housing-location/housing-location.component'; import {HousingLocation} from '../housinglocation'; @Component({ selector: 'app-home', standalone: true, imports: [CommonModule, HousingL...
{ "end_byte": 1046, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/08-ngFor/src/app/home/home.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/08-ngFor/src/app/home/home.component.css_0_746
.results { display: grid; column-gap: 14px; row-gap: 14px; grid-template-columns: repeat(auto-fill, minmax(400px, 400px)); margin-top: 50px; justify-content: space-around; } input[type="text"] { border: solid 1px var(--primary-color); padding: 10px; border-radius: 8px; margin-right: 4px; display:...
{ "end_byte": 746, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/08-ngFor/src/app/home/home.component.css" }
angular/adev/src/content/tutorials/first-app/steps/08-ngFor/src/app/housing-location/housing-location.component.css_0_583
.listing { background: var(--accent-color); border-radius: 30px; padding-bottom: 30px; } .listing-heading { color: var(--primary-color); padding: 10px 20px 0 20px; } .listing-photo { height: 250px; width: 100%; object-fit: cover; border-radius: 30px 30px 0 0; } .listing-location { padding: 10px 20px...
{ "end_byte": 583, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/08-ngFor/src/app/housing-location/housing-location.component.css" }
angular/adev/src/content/tutorials/first-app/steps/08-ngFor/src/app/housing-location/housing-location.component.ts_0_776
import {Component, Input} from '@angular/core'; import {CommonModule} from '@angular/common'; import {HousingLocation} from '../housinglocation'; @Component({ selector: 'app-housing-location', standalone: true, imports: [CommonModule], template: ` <section class="listing"> <img class="listing...
{ "end_byte": 776, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/08-ngFor/src/app/housing-location/housing-location.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/08-ngFor/src/assets/location-pin.svg_0_502
<?xml version="1.0" encoding="UTF-8"?> <svg width="20pt" height="20pt" version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <path d="m50 11.602c-15.398 0-27.898 12.5-27.898 27.898 0 5 1.3008 9.6992 3.6016 13.801l2.8984 4.1992 21.398 30.898 21.801-31.398 2.1992-3.1992c2.5-4.1992 3.8984-9 3.8984-14.19...
{ "end_byte": 502, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/08-ngFor/src/assets/location-pin.svg" }
angular/adev/src/content/tutorials/first-app/steps/08-ngFor/src/assets/logo.svg_0_2207
<svg width="151" height="44" viewBox="0 0 151 44" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M6.15532 33.2946C5.25369 33.2946 4.58006 32.5707 4.58006 31.6701V24.0152C4.58006 19.5469 4.35206 20.6276 7.59585 17.4236C21.7317 4.06732 16.2425 4.24744 29.6149 18.054C32.04...
{ "end_byte": 2207, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/08-ngFor/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/08-ngFor/src/assets/logo.svg_2208_5628
<path d="M58.9784 10.0512V32.2205H54.5319V22.7874H45.0353V32.2205H40.5887V10.0512H45.0353V19.1666H54.5319V10.0512H58.9784ZM70.8506 32.5063C69.1567 32.5063 67.6322 32.1358 66.277 31.3947C64.9219 30.6324 63.8526 29.5631 63.0692 28.1868C62.3069 26.8105 61.9258 25.2224 61.9258 23.4226C61.9258 21.6228 62.3175 20.0348 63.100...
{ "end_byte": 5628, "start_byte": 2208, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/08-ngFor/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/08-ngFor/src/assets/logo.svg_5629_6611
24.9789C139.658 24.6613 138.578 24.3331 137.731 23.9943C136.905 23.6555 136.185 23.1368 135.571 22.438C134.979 21.7393 134.682 20.797 134.682 19.6113C134.682 18.6373 134.957 17.748 135.508 16.9434C136.08 16.1387 136.884 15.5035 137.922 15.0377C138.98 14.5719 140.219 14.3389 141.638 14.3389C143.734 14.3389 145.407 14.86...
{ "end_byte": 6611, "start_byte": 5629, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/08-ngFor/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/08-ngFor/src/assets/logo.svg_6612_6619
</svg>
{ "end_byte": 6619, "start_byte": 6612, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/08-ngFor/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/01-hello-world/README.md_0_6374
# Hello world This first lesson serves as the starting point from which each lesson in this tutorial adds new features to build a complete Angular app. In this lesson, we'll update the application to display the famous text, "Hello World". <docs-video src="https://www.youtube.com/embed/UnOwDuliqZA?si=uML-cDRbrxmYdD_9...
{ "end_byte": 6374, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/01-hello-world/README.md" }
angular/adev/src/content/tutorials/first-app/steps/01-hello-world/src/index.html_0_429
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Default</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> <link href="https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,...
{ "end_byte": 429, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/01-hello-world/src/index.html" }
angular/adev/src/content/tutorials/first-app/steps/01-hello-world/src/main.ts_0_420
/* * Protractor support is deprecated in Angular. * Protractor is used in this example for compatibility with Angular documentation tools. */ import {bootstrapApplication, provideProtractorTestingSupport} from '@angular/platform-browser'; import {AppComponent} from './app/app.component'; bootstrapApplication(AppC...
{ "end_byte": 420, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/01-hello-world/src/main.ts" }
angular/adev/src/content/tutorials/first-app/steps/01-hello-world/src/styles.css_0_443
/* You can add global styles to this file, and also import other style files */ * { margin: 0; padding: 0; } body { font-family: 'Be Vietnam Pro', sans-serif; } :root { --primary-color: #605DC8; --secondary-color: #8B89E6; --accent-color: #e8e7fa; --shadow-color: #E8E8E8; } button.primary { padding: 1...
{ "end_byte": 443, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/01-hello-world/src/styles.css" }
angular/adev/src/content/tutorials/first-app/steps/01-hello-world/src/app/app.component.ts_0_246
import {Component} from '@angular/core'; @Component({ selector: 'app-root', standalone: true, imports: [], template: ` <h1>Default</h1> `, styleUrls: ['./app.component.css'], }) export class AppComponent { title = 'default'; }
{ "end_byte": 246, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/01-hello-world/src/app/app.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/01-hello-world/src/app/app.component.css_0_213
:host { --content-padding: 10px; } header { display: block; height: 60px; padding: var(--content-padding); box-shadow: 0px 5px 25px var(--shadow-color); } .content { padding: var(--content-padding); }
{ "end_byte": 213, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/01-hello-world/src/app/app.component.css" }
angular/adev/src/content/tutorials/first-app/steps/01-hello-world/src/assets/location-pin.svg_0_502
<?xml version="1.0" encoding="UTF-8"?> <svg width="20pt" height="20pt" version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <path d="m50 11.602c-15.398 0-27.898 12.5-27.898 27.898 0 5 1.3008 9.6992 3.6016 13.801l2.8984 4.1992 21.398 30.898 21.801-31.398 2.1992-3.1992c2.5-4.1992 3.8984-9 3.8984-14.19...
{ "end_byte": 502, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/01-hello-world/src/assets/location-pin.svg" }
angular/adev/src/content/tutorials/first-app/steps/01-hello-world/src/assets/logo.svg_0_2207
<svg width="151" height="44" viewBox="0 0 151 44" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M6.15532 33.2946C5.25369 33.2946 4.58006 32.5707 4.58006 31.6701V24.0152C4.58006 19.5469 4.35206 20.6276 7.59585 17.4236C21.7317 4.06732 16.2425 4.24744 29.6149 18.054C32.04...
{ "end_byte": 2207, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/01-hello-world/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/01-hello-world/src/assets/logo.svg_2208_5628
<path d="M58.9784 10.0512V32.2205H54.5319V22.7874H45.0353V32.2205H40.5887V10.0512H45.0353V19.1666H54.5319V10.0512H58.9784ZM70.8506 32.5063C69.1567 32.5063 67.6322 32.1358 66.277 31.3947C64.9219 30.6324 63.8526 29.5631 63.0692 28.1868C62.3069 26.8105 61.9258 25.2224 61.9258 23.4226C61.9258 21.6228 62.3175 20.0348 63.100...
{ "end_byte": 5628, "start_byte": 2208, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/01-hello-world/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/01-hello-world/src/assets/logo.svg_5629_6611
24.9789C139.658 24.6613 138.578 24.3331 137.731 23.9943C136.905 23.6555 136.185 23.1368 135.571 22.438C134.979 21.7393 134.682 20.797 134.682 19.6113C134.682 18.6373 134.957 17.748 135.508 16.9434C136.08 16.1387 136.884 15.5035 137.922 15.0377C138.98 14.5719 140.219 14.3389 141.638 14.3389C143.734 14.3389 145.407 14.86...
{ "end_byte": 6611, "start_byte": 5629, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/01-hello-world/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/01-hello-world/src/assets/logo.svg_6612_6619
</svg>
{ "end_byte": 6619, "start_byte": 6612, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/01-hello-world/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/README.md_0_2965
# Add an interpolation to a component’s template This tutorial lesson demonstrates how to add interpolation to Angular templates in order to display dynamic data in a template. <docs-video src="https://www.youtube.com/embed/eM3zi_n7lNs?si=IFAly3Ss8dwqFx8N&amp;start=338"/> ## What you'll learn - Your app will displa...
{ "end_byte": 2965, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/README.md" }
angular/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/index.html_0_427
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Homes</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> <link href="https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,40...
{ "end_byte": 427, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/index.html" }
angular/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/main.ts_0_420
/* * Protractor support is deprecated in Angular. * Protractor is used in this example for compatibility with Angular documentation tools. */ import {bootstrapApplication, provideProtractorTestingSupport} from '@angular/platform-browser'; import {AppComponent} from './app/app.component'; bootstrapApplication(AppC...
{ "end_byte": 420, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/main.ts" }
angular/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/styles.css_0_443
/* You can add global styles to this file, and also import other style files */ * { margin: 0; padding: 0; } body { font-family: 'Be Vietnam Pro', sans-serif; } :root { --primary-color: #605DC8; --secondary-color: #8B89E6; --accent-color: #e8e7fa; --shadow-color: #E8E8E8; } button.primary { padding: 1...
{ "end_byte": 443, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/styles.css" }
angular/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/app/housinglocation.ts_0_180
export interface HousingLocation { id: number; name: string; city: string; state: string; photo: string; availableUnits: number; wifi: boolean; laundry: boolean; }
{ "end_byte": 180, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/app/housinglocation.ts" }
angular/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/app/app.component.ts_0_529
import {Component} from '@angular/core'; import {HomeComponent} from './home/home.component'; @Component({ selector: 'app-root', standalone: true, imports: [HomeComponent], template: ` <main> <header class="brand-name"> <img class="brand-logo" src="/assets/logo.svg" alt="logo" aria-hidden="tr...
{ "end_byte": 529, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/app/app.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/app/app.component.css_0_213
:host { --content-padding: 10px; } header { display: block; height: 60px; padding: var(--content-padding); box-shadow: 0px 5px 25px var(--shadow-color); } .content { padding: var(--content-padding); }
{ "end_byte": 213, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/app/app.component.css" }
angular/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/app/home/home.component.ts_0_1046
import {Component} from '@angular/core'; import {CommonModule} from '@angular/common'; import {HousingLocationComponent} from '../housing-location/housing-location.component'; import {HousingLocation} from '../housinglocation'; @Component({ selector: 'app-home', standalone: true, imports: [CommonModule, HousingL...
{ "end_byte": 1046, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/app/home/home.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/app/home/home.component.css_0_746
.results { display: grid; column-gap: 14px; row-gap: 14px; grid-template-columns: repeat(auto-fill, minmax(400px, 400px)); margin-top: 50px; justify-content: space-around; } input[type="text"] { border: solid 1px var(--primary-color); padding: 10px; border-radius: 8px; margin-right: 4px; display:...
{ "end_byte": 746, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/app/home/home.component.css" }
angular/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/app/housing-location/housing-location.component.css_0_583
.listing { background: var(--accent-color); border-radius: 30px; padding-bottom: 30px; } .listing-heading { color: var(--primary-color); padding: 10px 20px 0 20px; } .listing-photo { height: 250px; width: 100%; object-fit: cover; border-radius: 30px 30px 0 0; } .listing-location { padding: 10px 20px...
{ "end_byte": 583, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/app/housing-location/housing-location.component.css" }
angular/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/app/housing-location/housing-location.component.ts_0_439
import {Component, Input} from '@angular/core'; import {CommonModule} from '@angular/common'; import {HousingLocation} from '../housinglocation'; @Component({ selector: 'app-housing-location', standalone: true, imports: [CommonModule], template: ` <p>housing-location works!</p> `, styleUrls: ['./housin...
{ "end_byte": 439, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/app/housing-location/housing-location.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/assets/location-pin.svg_0_502
<?xml version="1.0" encoding="UTF-8"?> <svg width="20pt" height="20pt" version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <path d="m50 11.602c-15.398 0-27.898 12.5-27.898 27.898 0 5 1.3008 9.6992 3.6016 13.801l2.8984 4.1992 21.398 30.898 21.801-31.398 2.1992-3.1992c2.5-4.1992 3.8984-9 3.8984-14.19...
{ "end_byte": 502, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/07-dynamic-template-values/src/assets/location-pin.svg" }