How to use the @agm/core.AgmCoreModule.forRoot function in @agm/core

To help you get started, we’ve selected a few @agm/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github angular-material-extensions / google-maps-autocomplete / demo-schematics / src / app / app.module.ts View on Github external
const googleMapsParams = {
  apiKey: environment.GOOGLE_MAPS_API_KEY,
  libraries: ['places'],
  language: 'en',
  // region: 'DE'
};

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    AgmCoreModule.forRoot(googleMapsParams),
    MatGoogleMapsAutocompleteModule,
    MatInputModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {
}
github dotnetcore / OSharp / tests / web / ui / angle / src / app / admin / material / material.module.ts View on Github external
const routes: Routes = [
    { path: 'widgets', component: WidgetsComponent },
    { path: 'cards', component: CardsComponent },
    { path: 'forms', component: FormsComponent },
    { path: 'inputs', component: InputsComponent },
    { path: 'lists', component: ListsComponent },
    { path: 'whiteframe', component: WhiteframeComponent },
    { path: 'colors', component: ColorsComponent },
    { path: 'ngmaterial', component: NgmaterialComponent }
];

@NgModule({
    imports: [
        AngleModule,
        RouterModule.forChild(routes),
        AgmCoreModule.forRoot({
            apiKey: 'AIzaSyBNs42Rt_CyxAqdbIBK0a5Ut83QiauESPA'
        })
    ],
    declarations: [
        WidgetsComponent,
        CardsComponent,
        FormsComponent,
        InputsComponent,
        ListsComponent,
        WhiteframeComponent,
        ColorsComponent,
        NgmaterialComponent,
        DialogResultExampleDialog,
        PizzaPartyComponent
    ],
    exports: [
github RoyPlu / Flare / src / app / app.module.ts View on Github external
NavbarComponent,
    PassportComponent,
    AboutComponent,
    ProfileComponent,
    MessagesComponent,
    LoginComponent,
    ProfileLocationComponent,
    AdvertisementComponent,
  ],
  imports: [
    BrowserModule,
    HttpModule,
    FormsModule,
    ReactiveFormsModule,
    RouterModule.forRoot(appRoutes),
    AgmCoreModule.forRoot({
      apiKey: 'AIzaSyBuhH3Fi2ofA8t9jfd2iKowr9anDGyXvRA',
    }),
    AdsenseModule,
  ],
  providers: [TinderService, MessagesService],
  bootstrap: [AppComponent]
})
export class AppModule { }
github asadsahi / AspNetCoreSpa / ClientApp / app / +examples / google-maps / google-maps.module.ts View on Github external
import { NgModule } from '@angular/core';
import { AgmCoreModule } from '@agm/core';

import { SharedModule } from '../../shared/shared.module';
import { routing } from './google-maps.routes';
import { GoogleMapsComponent } from './google-maps.component';

@NgModule({
    imports: [
        routing,
        SharedModule,
        AgmCoreModule.forRoot({
            apiKey: 'AIzaSyAQaGCkBos_D0w-cRhR2jD45yl99FjPFg8'
        })

    ],
    exports: [],
    declarations: [
        GoogleMapsComponent
    ],
    providers: [],
})
export class GoogleMapsModule { }
github GCE-NEIIST / GCE-NEIIST-webapp / angular-src / src / app / app.module.ts View on Github external
BrowserModule,
        ChatModule,
        FormsModule,
        HttpModule,
        NgbModule,
        ReactiveFormsModule,
        ChartsModule,
        JwtModule.forRoot({
            config: {
                whitelistedDomains: ['localhost:3001', 'localhost:8080', 'gce-neiist.org',
                                    'gce-neiist-development.herokuapp.com', 'gce-neiist-staging.herokuapp.com/',
                                    'fenix.tecnico.ulisboa.pt/oauth, maps.googleapis.com']
            }
        }),
        RouterModule.forRoot(appRoutes),
        AgmCoreModule.forRoot({
            apiKey: Vars.GOOGLE_MAPS,
        }),
        FlashMessagesModule,
    ],
    providers: [
        ValidateService,
        AuthService,
        StudentService,
        AuthGuardService,
        ThesisService,
        MockBackend,
        FeedbackService,
        BaseRequestOptions,
        AreasDump
    ],
    bootstrap: [AppComponent]
github akveo / ngx-admin / src / app / pages / maps / maps.module.ts View on Github external
import { NgModule } from '@angular/core';
import { AgmCoreModule } from '@agm/core';
import { LeafletModule } from '@asymmetrik/ngx-leaflet';
import { NgxEchartsModule } from 'ngx-echarts';
import { NbCardModule } from '@nebular/theme';

import { ThemeModule } from '../../@theme/theme.module';
import { MapsRoutingModule, routedComponents } from './maps-routing.module';

@NgModule({
  imports: [
    ThemeModule,
    AgmCoreModule.forRoot({
      apiKey: 'AIzaSyCpVhQiwAllg1RAFaxMWSpQruuGARy0Y1k',
      libraries: ['places'],
    }),
    LeafletModule.forRoot(),
    MapsRoutingModule,
    NgxEchartsModule,
    NbCardModule,
  ],
  exports: [],
  declarations: [
    ...routedComponents,
  ],
})
export class MapsModule { }
github explooosion / Agm-Direction / playground / src / app / app.module.ts View on Github external
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

import { AgmCoreModule } from '@agm/core';
import { AgmDirectionModule } from '../../../dist';

import { environment } from '../environments/environment';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    AgmCoreModule.forRoot({
      apiKey: environment.googleAPIKey,
    }),
    AgmDirectionModule,
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
github AckerApple / agm-overlays / example / src / app.module.ts View on Github external
import { NgModule } from "@angular/core"
import { BrowserModule } from '@angular/platform-browser'
import { AgmCoreModule } from "@agm/core"
import { AppComponent } from "./app.component"
import { AgmJsMarkerClustererModule } from '@agm/js-marker-clusterer';

//DO NOT USE BELOW
//YOU NEED USE: import { AgmOverlays } from "agm-overlays"
import { AgmOverlays } from "../../src"

@NgModule({
  imports:[
    BrowserModule,
    AgmOverlays,
    AgmCoreModule.forRoot({
      apiKey: 'AIzaSyD2Z0LzbjZXiqRAsVYTl4OP7cK7hdgR89U'
    }),
    AgmJsMarkerClustererModule
  ],
  bootstrap: [ AppComponent ],
  declarations: [ AppComponent ]
}) export class AppModule{}
github jingkuan / Meel / src / app / subpages / invitation / invitation.module.ts View on Github external
import { InvitationPage } from './invitation.page';

const routes: Routes = [
  {
    path: '',
    component: InvitationPage
  }
];

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    IonicModule,
    RouterModule.forChild(routes),
    AgmCoreModule.forRoot({
      apiKey: 'AIzaSyCYq0XB4TWCDdKS9gWGaeb2B4q0HeVTS5M'
    })
  ],
  declarations: [InvitationPage]
})
export class InvitationPageModule {}
github spderosso / deja-vu / packages / catalog / geolocation / src / app / geolocation / geolocation.metadata.ts View on Github external
];

const metadata = {
  imports: [
    BrowserModule,
    CommonModule,
    DvModule,
    ReactiveFormsModule,
    BrowserAnimationsModule,
    MatButtonModule,
    MatIconModule,
    MatInputModule,
    MatFormFieldModule,
    FormsModule,
    LeafletModule.forRoot(),
    AgmCoreModule.forRoot({
      apiKey: GOOGLE_MAPS_API_KEY
    })
  ],
  declarations: allComponents,
  exports: allComponents,
  entryComponents: allComponents
};

export { metadata };