Skip to content

adamchenwei/angular-easyfb-webpack-ready

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

angular-easyfb-webpack-ready

A webpack ready version of the angular-easyfb

Usage

ensure angular and webpack are properly setup in your environment (use one of the webpack angular 1 boilerplate floating everywhere in the github). Then simple clone this report into your source and BOOM! Its ready to use!

Example

lets say you put the easyfb in your src/easyfb folder, meanwhile you have angular component needs to use it is located in another folder in the src, like, src/mycomponent, then all you need to do is the following to initiate the setup for it:

import angular from 'angular';
import easyfacebook from './../easyfacebook/easyfacebook';

let myComponentModule = angular.module('theAppModuleItself', [
  easyfacebook.name,
])

.config((ezfbProvider) => {
  ezfbProvider.setInitParams({
    appId: '0101010101001', //your app id
    version: 'v2.5'
  });

})
.component('myComponent', theAppModuleItself)

export default myComponentModule;

#Credit https://github.com/pc035860/angular-easyfb

About

A webpack ready version of the angular-easyfb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published