The Slaask widget will appear in primo, enabling communication with patrons via Slack. More information on Slaask is available here.
- Make sure you've installed and configured primo-explore-devenv.
- Navigate to your template/central package root directory. For example:
cd primo-explore/custom/MY_VIEW_ID
- If you do not already have a
package.json
file in this directory, create one:npm init -y
- Install this package:
npm install primo-explore-slaask --save-dev
Once this package is installed, add slaask
as a dependency for your custom module definition.
var app = angular.module('viewCustom', ['slaask'])
Note: If you're using the --browserify
build option, you will need to first import the module with:
import 'primo-explore-slaask';
The widget requires your unique Slaask ID to function, which can be obtained in your Slaask settings. You can configure it as below.
app.constant('slaask_id', '295ddfaketoken356b7da45a415a')