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

angular-ts-utils

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-ts-utils

Angular Utilities for Townsqd.com

  • 0.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

ts-utils

A package of open-sourceable angularjs utils

Installation

  1. bower install townsquared/utils
  2. load the utils.js
  3. angular.module('myApp', ['ts.utils'])

Utils

focusOn

Focuses an input on scope broadcasted event.

Specify the name of the broadcast event you would like to use to trigger the focusing.

<input focus-on="someEventName">
or
<input focus-on="focus-row-{{$index}}">
$scope.$broadcast('someEventName');
or
$scope.$broadcast('focus-row-'+$index);

scrollOn

Scroll to a certain point inside an overflowing DOM element on scope broadcasted event.

Specify the name of the broadcast event you would like to use to trigger scrolling.
Pass the location to scroll to as the data of the event.
Location: 'top' | 'bottom' | 200

<ul scroll-on="someEventName" style="overflow: auto">...</ul>
 var location = 'bottom';
 $scope.$broadcast('someEventName', location);

Keywords

FAQs

Package last updated on 18 Aug 2015

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