=======
Ng-smartBanner is an awesome and sexy directive for add smartBanner for only one store into your Angular 1.2+ app. Based on jquery.smartbanner https://github.com/jasny/jquery.smartbanner/blob/master/jquery.smartbanner.js
>Html code Loader
<link href="ng-smartBanner.css" rel="stylesheet" />
<script src="//angular/angular.min.js"></script>
<script src="//ng-smartBanner.js"></script>> Angular configuration
angular.module('myApp', ['ng-smartBanner'])
.config(function(BannerOptionsProvider){
BannerOptionsProvider.setBannerOptions({
title: 'toto',
author: "toto gro", // What the author of the app should be in the banner (defaults to <meta name="author"> or hostname)
price: '1 milion de dollar', // Price of the app
})};>Configure provider options :
title: '', // What the title of the app should be in the banner (required)
author: '', // What the author of the app should be in the banner (required)
price: 'FREE', // Price of the app
bodyText: 'In Google Play', // Text afrter price .. (required)
urlStore:'',//google Store ID (required)
icon: '', // The URL of the icon (required)
buttonTexte: 'View', // Text for the install button
storageName:'bannerSave', //Define key Value save in the localStorage.
daysHidden: 15, // Duration in day to hide the banner after being closed (0 = always show banner)
daysReminder: 90 // Duration in day to hide the banner after "VIEW" is clicked *separate from when the close button is clicked* (0 = always show banner)
>markup directive
<smart-banner></smart-banner>> Example
An example is available to help you to start in folder : testHtml.
First commit