| Property | Description |
|---|---|
height |
Sets the initial height |
width |
Sets the initial width |
center |
Sets the initial center |
zoom |
Sets the initial zoom |
options |
Sets the options, for more info see the [docs](https://developers.google.com/maps/documentation/javascript/reference |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Map</title> | |
| <base href="/" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <link rel="icon" type="image/x-icon" href="favicon.ico" /> | |
| <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY"></script> | |
| </head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { BrowserModule } from '@angular/platform-browser' | |
| import { NgModule } from '@angular/core' | |
| import { GoogleMapsModule } from '@angular/google-maps' | |
| import { AppComponent } from './app.component' | |
| @NgModule({ | |
| declarations: [AppComponent], | |
| imports: [BrowserModule, GoogleMapsModule], | |
| providers: [], | |
| bootstrap: [AppComponent], | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const appointmentMachine = Machine({ | |
| id: 'appointment', | |
| context: { | |
| appointment: null | |
| }, | |
| initial: 'save', | |
| states: { | |
| save: { | |
| invoke: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const countMachine = Machine( | |
| { | |
| id: "counter", | |
| context: { | |
| counter: 10, | |
| tickSpeed: 1000, | |
| countDiff: 1, | |
| }, | |
| initial: "paused", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const dragMachine = Machine( | |
| { | |
| key: 'ngx-drag-to-select', | |
| initial: 'clickMode', | |
| context: { | |
| shortcuts: {}, | |
| selectWithShortcut: false, | |
| x1: 0, | |
| y1: 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe('createSelectorFactoryWithCache', () => { | |
| const mockState = { | |
| propA: { | |
| a: 1, | |
| b: 2, | |
| c: 3, | |
| }, | |
| propB: { | |
| d: 4, | |
| e: 5, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Only the name is required --> | |
| <person></person> | |
| <!-- The name and the contactInfo are required --> | |
| <person stage-one></person> | |
| <!-- All fields are required --> | |
| <person stage-two></person> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Directive({ | |
| selector: 'person[stage-two]', | |
| }) | |
| export class StageTwoDirective { | |
| constructor(host: PersonComponent) { | |
| host.form.get('contactInfo').setValidators([Validators.required]) | |
| host.form.get('allergies').setValidators([Validators.required]) | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Directive({ | |
| selector: 'person[stage-one]', | |
| }) | |
| export class StageOneDirective { | |
| constructor(host: PersonComponent) { | |
| host.form.get('contactInfo').setValidators([Validators.required]) | |
| } | |
| } |