kudago / smart-app-banner

Lightweight smart app banner with no jquery requirement
MIT License
526 stars 250 forks source link

How to use it with Angular #88

Open costea93 opened 7 years ago

costea93 commented 7 years ago

Hello, how to use it with Angular 1.x, i tried, but without success, i can't initialize it. Can someone help with that?

maghidini commented 7 years ago

Hi @costea93, I could make it work in my Angular app. At the beginning, I forgot to include this meta tags in the index.html. Besides the <link rel="stylesheet" href="bower_components/smart-app-banner/smart-app-banner.css" /> , <script src="bower_components/smart-app-banner/smart-app-banner.js"></script> and the new SmartBanner() script as well.

<meta name="apple-itunes-app" content="app-id=502838820"> <meta name="google-play-app" content="app-id=ru.hh.android"> <link rel="apple-touch-icon" href="apple-touch-icon.png"> <link rel="android-touch-icon" href="android-icon.png" />