scttcper / ng2-adsense

Angular Adsense Component
https://ng2-adsense.xmplaylist.com
MIT License
137 stars 24 forks source link

Support for Angular 17 standalone #445

Open wernert75 opened 4 months ago

wernert75 commented 4 months ago

Is there support for Angular 17 and the case of standalone components?

brandomcombr commented 3 months ago

I'm with the same problem

ecancil commented 2 months ago

@wernert75

I got it to work with the following

importProvidersFrom(AdsenseModule.forRoot({
                adClient: 'ca-pub-xxxxxxx',
                adSlot: xxxxxx,
                adFormat: 'auto',
                fullWidthResponsive: true,
                adtest: "on"
              }),)
Saqib92 commented 1 month ago

@wernert75

I got it to work with the following

importProvidersFrom(AdsenseModule.forRoot({
                adClient: 'ca-pub-xxxxxxx',
                adSlot: xxxxxx,
                adFormat: 'auto',
                fullWidthResponsive: true,
                adtest: "on"
              }),)

what to import in myadSense.component.ts .. it is showing error when added <ng-adsense> element.