Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Latest commit

 

History

History
62 lines (44 loc) · 1.77 KB

README.md

File metadata and controls

62 lines (44 loc) · 1.77 KB

mindsmash-angular-favico

A simple AngularJS wrapper for favico.js. Make use of your favicon with badges, images or videos.

Table of Contents

1. Installation:

  1. Download the latest release or the current master from GitHub. You can also use Bower to install the latest version:
$ bower install mindsmash-angular-favico --save
  1. Include the library in your website (please use either the minified or unminified file in the dist directory):
<script src="mindsmash-angular-favico/mindsmash-angular-favico.min.js"></script>
  1. Add favico as a dependency to your app:
angular.module('your-app', ['mindsmash.favico']);

Back to top

2. Configuration

You may configure the Favicon by injecting the FaviconProvider into the config function.

myApp.config(["FaviconProvider", function(FaviconProvider) {
  FaviconProvider.setOptions({
      animation:'fade',
      bgColor: '#f00',
   });
}]);

Back to top

3. API

After injecting the Favicon into your application, it supports the same API as favico.js. Please see the favico.js documentation for more details.

Favicon.badge(...)
Favicon.image(...)
Favicon.video(...)
Favicon.webcam(...)
Favicon.reset(...)

Back to top

Contributors