I am trying to use smart-app-banner in my app, but since there are no typings on the web for it, I don't know how to use it within angular.
So far I've got this in my app.component.ts :
import * as smartBanner from "smart-app-banner";
let smartBannerInstance = smartBanner();
constructor() {
new smartBannerInstance({
daysHidden: 10, // days to hide banner after close button is clicked (defaults to 15)
daysReminder: 20, // days to hide banner after "VIEW" button is clicked (defaults to 90)
// appStoreLanguage: 'us', // language code for the App Store (defaults to user's browser language)
title: "Title",
author: "Authot",
button: "VIEW",
store: {
ios: "On the App Store",
android: "In Google Play"
},
price: {
ios: "FREE",
android: "FREE"
}
// force: 'android' // Uncomment for platform emulation
});
}
But I get the usual
Uncaught TypeError: Cannot set property 'options' of undefined at SmartBanner
How can I make this work?