Git Product home page Git Product logo

Comments (9)

wbhob avatar wbhob commented on August 12, 2024 1

Done! @craigeddy

from ng-intercom.

wbhob avatar wbhob commented on August 12, 2024

Yes, that is the intended behavior. You need to instantiate Intercom before you can access the services.

from ng-intercom.

craigeddy avatar craigeddy commented on August 12, 2024

👍

I'd recommend adding a note/step to the readme perhaps. Save the less-savvy in Angular folks such as myself.

from ng-intercom.

wbhob avatar wbhob commented on August 12, 2024

I actually implemented this functionality in to the 1.0.0-alpha, releasing soon, so it automatically injects the script for you. Is this something you would be interested in trying? @craigeddy

from ng-intercom.

wbhob avatar wbhob commented on August 12, 2024

@craigeddy v1.0.0-alpha is out, would you mind giving it a try?

from ng-intercom.

craigeddy avatar craigeddy commented on August 12, 2024

Certainly. Total Angular/npm noob (C# & NuGet are my jam). How would I upgrade to this version?

from ng-intercom.

wbhob avatar wbhob commented on August 12, 2024

https://github.com/CaliStyle/angular2-intercom/blob/1.0.0-alpha/docs/1-Installaton.md

from ng-intercom.

craigeddy avatar craigeddy commented on August 12, 2024

When I use this version, I'm getting a compile error on ng serve:

ERROR in Error encountered resolving symbol values statically. Calling function 'IntercomModule', function calls ar e not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symb ol AppModule in C:/Users/eddycr/Source/Repos/registration/src/app/app.module.ts, resolving symbol AppModule in C:/U sers/eddycr/Source/Repos/registration/src/app/app.module.ts

the code:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { IntercomModule } from 'ng-intercom';
import { AppComponent } from './app.component';
import { RegisterModel } from './app.registermodel';
import { RegistrationComponent } from 'app/registration/registration.component';

@NgModule({
  declarations: [
    AppComponent,
    RegistrationComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    IntercomModule.forRoot({ app_id: 'sq739kpn'})
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

I also have a repo with my whole project if you want to take a look. I'm probably doing/forgetting something noob-ish. https://github.com/craigeddy/IntercomProtype (angular2-intercom-alpha branch)

from ng-intercom.

wbhob avatar wbhob commented on August 12, 2024

@craigeddy I'll look into it soon. I openned another issue at #12. Thanks for the feedback!

from ng-intercom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.