You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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
Package was removed
Sorry, it seems this package was removed from the registry

ng-smartlook

AngularJS integration for smartlook

1.0.5
unpublished
latest
Source
npmnpm
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

angular

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