Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng-smartlook

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-smartlook

AngularJS integration for smartlook

  • 1.0.5
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Version 1.0.5

  • MORE DOC INCOMING SOON first push 13/05/17

    • 3 ways to install ng-smartlook:
      • bower install --save ng-smartlook
      • yarn add ng-smartlook
      • npm install --save ng-smartlook

and then add to your index.html after including angularjs

  • for bower <script type="text/javascript" src="/bower_components/ng-smartlook/ng-smartlook.js"></script>

  • for npm and yarn <script type="text/javascript" src="/node_modules/ng-smartlook/ng-smartlook.js"></script>

  • after include it on your angular app

var app = angular.module('yourApp', ['ng-smartlook']);
  • Now you are ready to use it :
app.config(['SmartlookProvider', function(SmartlookProvider){

    SmartlookProvider.init({apiKey: "yourSmartlookApiKey"});

}]);

it should be non empty and an objet with apikey or it will throw an error

  • And finally you can use the service smartlook and acces normal smartlook api
app.controller("controller", ['Smartlook', function(Smartlook){
    Smartlook.smartlook('tag', 'keyTag', 'valueTag');
}]);

etc etc...

if you want more information about smartlook api and what you can do https://www.smartlook.com/docs/api.html

  • MORE DOC INCOMING SOON first push 13/05/17

    • 3 ways to install ng-smartlook:
      • bower install --save ng-smartlook
      • yarn add ng-smartlook
      • npm install --save ng-smartlook

and then add to your index.html after including angularjs

  • for bower <script type="text/javascript" src="/bower_components/ng-smartlook/ng-smartlook.js"></script>

  • for npm and yarn <script type="text/javascript" src="/node_modules/ng-smartlook/ng-smartlook.js"></script>

  • after include it on your angular app

var app = angular.module('yourApp', ['ng-smartlook']);
  • Now you are ready to use it :
app.config(['SmartlookProvider', function(SmartlookProvider){

    SmartlookProvider.init({apiKey: "yourSmartlookApiKey"});

}]);

it should be non empty and an objet with apikey or it will throw an error

  • And finally you can use the service smartlook and acces normal smartlook api and more method
app.controller("controller", ['Smartlook', function(Smartlook){
    Smartlook.smartlook('tag', 'keyTag', 'valueTag');
    Smartlook.startToNow(); // will give you the number of second from start to now nice for catching error time on video
}]);

if you want more information about smartlook api and what you can do https://www.smartlook.com/docs/api.html

Keywords

FAQs

Package last updated on 17 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc