_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/adev/src/content/tutorials/first-app/steps/02-HomeComponent/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/02-HomeComponent/src/main.ts" }
angular/adev/src/content/tutorials/first-app/steps/02-HomeComponent/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/02-HomeComponent/src/styles.css" }
angular/adev/src/content/tutorials/first-app/steps/02-HomeComponent/src/app/app.component.ts_0_249
import {Component} from '@angular/core'; @Component({ selector: 'app-root', standalone: true, imports: [], template: ` <h1>Hello world!</h1> `, styleUrls: ['./app.component.css'], }) export class AppComponent { title = 'homes'; }
{ "end_byte": 249, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/02-HomeComponent/src/app/app.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/02-HomeComponent/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/02-HomeComponent/src/app/app.component.css" }
angular/adev/src/content/tutorials/first-app/steps/02-HomeComponent/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/02-HomeComponent/src/assets/location-pin.svg" }
angular/adev/src/content/tutorials/first-app/steps/02-HomeComponent/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/02-HomeComponent/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/02-HomeComponent/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/02-HomeComponent/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/02-HomeComponent/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/02-HomeComponent/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/02-HomeComponent/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/02-HomeComponent/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/09-services/README.md_0_5924
# Angular services This tutorial lesson demonstrates how to create an Angular service and use dependency injection to include it in your app. <docs-video src="https://www.youtube.com/embed/-jRxG84AzCI?si=rieGfJawp9xJ00Sz"/> ## What you'll learn Your app has a service to serve the data to your app. At the end of thi...
{ "end_byte": 5924, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/09-services/README.md" }
angular/adev/src/content/tutorials/first-app/steps/09-services/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/09-services/src/index.html" }
angular/adev/src/content/tutorials/first-app/steps/09-services/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/09-services/src/main.ts" }
angular/adev/src/content/tutorials/first-app/steps/09-services/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/09-services/src/styles.css" }
angular/adev/src/content/tutorials/first-app/steps/09-services/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/09-services/src/app/housinglocation.ts" }
angular/adev/src/content/tutorials/first-app/steps/09-services/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/09-services/src/app/app.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/09-services/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/09-services/src/app/app.component.css" }
angular/adev/src/content/tutorials/first-app/steps/09-services/src/app/home/home.component.ts_0_3366
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": 3366, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/09-services/src/app/home/home.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/09-services/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/09-services/src/app/home/home.component.css" }
angular/adev/src/content/tutorials/first-app/steps/09-services/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/09-services/src/app/housing-location/housing-location.component.css" }
angular/adev/src/content/tutorials/first-app/steps/09-services/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/09-services/src/app/housing-location/housing-location.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/09-services/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/09-services/src/assets/location-pin.svg" }
angular/adev/src/content/tutorials/first-app/steps/09-services/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/09-services/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/09-services/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/09-services/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/09-services/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/09-services/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/09-services/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/09-services/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/03-HousingLocation/README.md_0_4001
# Create the application’s HousingLocation component This tutorial lesson demonstrates how to add the `HousingLocation` component to your Angular app. <docs-video src="https://www.youtube.com/embed/R0nRX8jD2D0?si=U4ONEbPvtptdUHTt&amp;start=440"/> ## What you'll learn * Your app has a new component: `HousingLocation...
{ "end_byte": 4001, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/03-HousingLocation/README.md" }
angular/adev/src/content/tutorials/first-app/steps/03-HousingLocation/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/03-HousingLocation/src/index.html" }
angular/adev/src/content/tutorials/first-app/steps/03-HousingLocation/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/03-HousingLocation/src/main.ts" }
angular/adev/src/content/tutorials/first-app/steps/03-HousingLocation/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/03-HousingLocation/src/styles.css" }
angular/adev/src/content/tutorials/first-app/steps/03-HousingLocation/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/03-HousingLocation/src/app/app.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/03-HousingLocation/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/03-HousingLocation/src/app/app.component.css" }
angular/adev/src/content/tutorials/first-app/steps/03-HousingLocation/src/app/home/home.component.ts_0_440
import {Component} from '@angular/core'; import {CommonModule} from '@angular/common'; @Component({ selector: 'app-home', standalone: true, imports: [CommonModule], template: ` <section> <form> <input type="text" placeholder="Filter by city" /> <button class="primary" type="button">Se...
{ "end_byte": 440, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/03-HousingLocation/src/app/home/home.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/03-HousingLocation/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/03-HousingLocation/src/app/home/home.component.css" }
angular/adev/src/content/tutorials/first-app/steps/03-HousingLocation/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/03-HousingLocation/src/assets/location-pin.svg" }
angular/adev/src/content/tutorials/first-app/steps/03-HousingLocation/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/03-HousingLocation/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/03-HousingLocation/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/03-HousingLocation/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/03-HousingLocation/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/03-HousingLocation/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/03-HousingLocation/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/03-HousingLocation/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/04-interfaces/README.md_0_5500
# Creating an interface This tutorial lesson demonstrates how to create an interface and include it in a component of your app. <docs-video src="https://www.youtube.com/embed/eM3zi_n7lNs?si=YkFSeUeV8Ixtz8pm"/> ## What you'll learn * Your app has a new interface that it can use as a data type. * Your app has an inst...
{ "end_byte": 5500, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/04-interfaces/README.md" }
angular/adev/src/content/tutorials/first-app/steps/04-interfaces/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/04-interfaces/src/index.html" }
angular/adev/src/content/tutorials/first-app/steps/04-interfaces/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/04-interfaces/src/main.ts" }
angular/adev/src/content/tutorials/first-app/steps/04-interfaces/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/04-interfaces/src/styles.css" }
angular/adev/src/content/tutorials/first-app/steps/04-interfaces/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/04-interfaces/src/app/app.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/04-interfaces/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/04-interfaces/src/app/app.component.css" }
angular/adev/src/content/tutorials/first-app/steps/04-interfaces/src/app/home/home.component.ts_0_651
import {Component} from '@angular/core'; import {CommonModule} from '@angular/common'; import {HousingLocationComponent} from '../housing-location/housing-location.component'; @Component({ selector: 'app-home', standalone: true, imports: [CommonModule, HousingLocationComponent], template: ` <section> ...
{ "end_byte": 651, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/04-interfaces/src/app/home/home.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/04-interfaces/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/04-interfaces/src/app/home/home.component.css" }
angular/adev/src/content/tutorials/first-app/steps/04-interfaces/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/04-interfaces/src/app/housing-location/housing-location.component.css" }
angular/adev/src/content/tutorials/first-app/steps/04-interfaces/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/04-interfaces/src/app/housing-location/housing-location.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/04-interfaces/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/04-interfaces/src/assets/location-pin.svg" }
angular/adev/src/content/tutorials/first-app/steps/04-interfaces/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/04-interfaces/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/04-interfaces/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/04-interfaces/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/04-interfaces/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/04-interfaces/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/04-interfaces/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/04-interfaces/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/06-property-binding/README.md_0_2357
# Add a property binding to a component’s template This tutorial lesson demonstrates how to add property binding to a template and use it to pass dynamic data to components. <docs-video src="https://www.youtube.com/embed/eM3zi_n7lNs?si=AsiczpWnMz5HhJqB&amp;start=599"/> ## What you'll learn * Your app has data bindi...
{ "end_byte": 2357, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/06-property-binding/README.md" }
angular/adev/src/content/tutorials/first-app/steps/06-property-binding/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/06-property-binding/src/index.html" }
angular/adev/src/content/tutorials/first-app/steps/06-property-binding/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/06-property-binding/src/main.ts" }
angular/adev/src/content/tutorials/first-app/steps/06-property-binding/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/06-property-binding/src/styles.css" }
angular/adev/src/content/tutorials/first-app/steps/06-property-binding/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/06-property-binding/src/app/housinglocation.ts" }
angular/adev/src/content/tutorials/first-app/steps/06-property-binding/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/06-property-binding/src/app/app.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/06-property-binding/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/06-property-binding/src/app/app.component.css" }
angular/adev/src/content/tutorials/first-app/steps/06-property-binding/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/06-property-binding/src/app/home/home.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/06-property-binding/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/06-property-binding/src/app/home/home.component.css" }
angular/adev/src/content/tutorials/first-app/steps/06-property-binding/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/06-property-binding/src/app/housing-location/housing-location.component.css" }
angular/adev/src/content/tutorials/first-app/steps/06-property-binding/src/app/housing-location/housing-location.component.ts_0_438
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: ['./housing...
{ "end_byte": 438, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/06-property-binding/src/app/housing-location/housing-location.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/06-property-binding/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/06-property-binding/src/assets/location-pin.svg" }
angular/adev/src/content/tutorials/first-app/steps/06-property-binding/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/06-property-binding/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/06-property-binding/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/06-property-binding/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/06-property-binding/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/06-property-binding/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/06-property-binding/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/06-property-binding/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/README.md_0_6104
# Adding a form to your Angular app This tutorial lesson demonstrates how to add a form that collects user data to an Angular app. This lesson starts with a functional Angular app and shows how to add a form to it. The data that the form collects is sent only to the app's service, which writes it to the browser's con...
{ "end_byte": 6104, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/12-forms/README.md" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/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/12-forms/src/index.html" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/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/12-forms/src/main.ts" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/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/12-forms/src/styles.css" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/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/12-forms/src/app/routes.ts" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/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/12-forms/src/app/housinglocation.ts" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/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/12-forms/src/app/housing.service.ts" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/src/app/app.component.ts_0_671
import {Component} from '@angular/core'; import {HomeComponent} from './home/home.component'; import {RouterLink, RouterOutlet} from '@angular/router'; @Component({ selector: 'app-root', standalone: true, imports: [HomeComponent, RouterLink, RouterOutlet], template: ` <main> <a [routerLink]="['/']"> ...
{ "end_byte": 671, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/12-forms/src/app/app.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/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/12-forms/src/app/app.component.css" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/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/12-forms/src/app/home/home.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/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/12-forms/src/app/home/home.component.css" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/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/12-forms/src/app/housing-location/housing-location.component.css" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/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/12-forms/src/app/housing-location/housing-location.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/src/app/details/details.component.ts_0_1572
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'; @Component({ selector: 'app-details', standalone: true, imports: [C...
{ "end_byte": 1572, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/12-forms/src/app/details/details.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/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/12-forms/src/app/details/details.component.css" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/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/12-forms/src/assets/location-pin.svg" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/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/12-forms/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/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/12-forms/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/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/12-forms/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/12-forms/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/12-forms/src/assets/logo.svg" }
angular/adev/src/content/tutorials/first-app/steps/13-search/README.md_0_4598
# Add the search feature to your app This tutorial lesson demonstrates how to add a search functionality to your Angular app. The app will enable users to search through the data provided by your app and display only the results that match the entered term. <docs-video src="https://www.youtube.com/embed/5K10oYJ5Y-E?...
{ "end_byte": 4598, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/13-search/README.md" }
angular/adev/src/content/tutorials/first-app/steps/13-search/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/13-search/src/index.html" }
angular/adev/src/content/tutorials/first-app/steps/13-search/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/13-search/src/main.ts" }
angular/adev/src/content/tutorials/first-app/steps/13-search/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/13-search/src/styles.css" }
angular/adev/src/content/tutorials/first-app/steps/13-search/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/13-search/src/app/routes.ts" }
angular/adev/src/content/tutorials/first-app/steps/13-search/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/13-search/src/app/housinglocation.ts" }
angular/adev/src/content/tutorials/first-app/steps/13-search/src/app/housing.service.ts_0_3182
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": 3182, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/13-search/src/app/housing.service.ts" }
angular/adev/src/content/tutorials/first-app/steps/13-search/src/app/app.component.ts_0_671
import {Component} from '@angular/core'; import {HomeComponent} from './home/home.component'; import {RouterLink, RouterOutlet} from '@angular/router'; @Component({ selector: 'app-root', standalone: true, imports: [HomeComponent, RouterLink, RouterOutlet], template: ` <main> <a [routerLink]="['/']"> ...
{ "end_byte": 671, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/content/tutorials/first-app/steps/13-search/src/app/app.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/13-search/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/13-search/src/app/app.component.css" }
angular/adev/src/content/tutorials/first-app/steps/13-search/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/13-search/src/app/home/home.component.ts" }
angular/adev/src/content/tutorials/first-app/steps/13-search/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/13-search/src/app/home/home.component.css" }