npm.io
0.0.17 • Published 10 years ago

ng-typist

Licence
Apache-2.0
Version
0.0.17
Deps
1
Vulns
0
Weekly
0

ng-typist

Intro

Angular wrapper for malarkey - a module to provide typing simulation

Installing

  • npm install -g gulp gulp-cli install global cli dependencies
  • npm install to install dependencies

Running exmample app

  • gulp serve to launch guld-webserver

Usage

  1. <script type='text/javascript' src='ng-typist/dist/app.min.js'></script>
  2. angular.module('myApp', ['ng-typist'])
  3. provide a config object
  4. make sure you have bootstrap css

Example

    $scope.typistConfig = {
        words: ['Thanks for using ng-typist...', 'Have a nice day!'], 
        id: 'typist',
        typeSpeed: 50,
        deleteSpeed: 50,
        pauseDelay: 500,
        loop: true,
        postfix: ''
    };