All Projects → thisissoon → angular-ellipsis

thisissoon / angular-ellipsis

Licence: MIT license
A simple lightweight library for Angular which removes excess text and add ellipsis symbol to end of text before text overflows container

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to angular-ellipsis

angular-scrollspy
A simple lightweight library for Angular which automatically updates links to indicate the currently active section in the viewport
Stars: ✭ 34 (+112.5%)
Mutual labels:  directive, ngx, ngx-library
angular-inviewport
A simple lightweight library for Angular with no other dependencies that detects when an element is within the browser viewport and adds a "sn-viewport-in" or "sn-viewport-out" class to the element
Stars: ✭ 72 (+350%)
Mutual labels:  directive, ngx, ngx-library
Ngx Daterangepicker Material
Pure Angular 2+ date range picker with material design theme, a demo here:
Stars: ✭ 169 (+956.25%)
Mutual labels:  directive, ngx
angular-masonry
A simple lightweight library to use Masonry layout in Angular
Stars: ✭ 11 (-31.25%)
Mutual labels:  ngx, ngx-library
ngx-malihu-scrollbar
Angular 2+ scrollbar customization using Malihu jQuery Custom Scrollbar plugin
Stars: ✭ 59 (+268.75%)
Mutual labels:  directive, ngx
angular-image-loader
A simple progressive, responsive, lazy image and video loading library for Angular that detects browser size and loads the appropriate image or video only when the element is in viewport. This package requires @thisissoon/angular-inviewport
Stars: ✭ 21 (+31.25%)
Mutual labels:  ngx, ngx-library
Ng Inline Svg
[Inactive] Angular directive for inserting an SVG file inline within an element.
Stars: ✭ 211 (+1218.75%)
Mutual labels:  directive
angular-datetime-inputs
📅 Angular directives for datetime inputs
Stars: ✭ 20 (+25%)
Mutual labels:  directive
Ngx Currency
📦 Currency mask module for Angular
Stars: ✭ 161 (+906.25%)
Mutual labels:  directive
Vue Scrollto
Adds a directive that listens for click events and scrolls to elements.
Stars: ✭ 1,859 (+11518.75%)
Mutual labels:  directive
angular-cron-gen
A basic way to for users to graphically build a cron expression using Angular.
Stars: ✭ 36 (+125%)
Mutual labels:  directive
ngx-timeago
⏰ Live updating timestamps in Angular 6+
Stars: ✭ 70 (+337.5%)
Mutual labels:  directive
shear.js
✂️truncate text across DOM nodes
Stars: ✭ 61 (+281.25%)
Mutual labels:  ellipsis
Ng Click Outside
[Inactive] Angular directive for handling click events outside of an element.
Stars: ✭ 216 (+1250%)
Mutual labels:  directive
ngx-line-truncation
An Angular line truncating solution. Truncate text block by given line number and add ellipsis to the end.
Stars: ✭ 13 (-18.75%)
Mutual labels:  ellipsis
graphql-directive-rest
GraphQL directive for easy integration with REST API
Stars: ✭ 39 (+143.75%)
Mutual labels:  directive
Vue Directive Tooltip
Vue.js tooltip directive. Easy to use, configure and style
Stars: ✭ 158 (+887.5%)
Mutual labels:  directive
ngx-access
Add access control to your components using hierarchical configuration with logical expressions.
Stars: ✭ 21 (+31.25%)
Mutual labels:  directive
remark-directive
remark plugin to support directives
Stars: ✭ 137 (+756.25%)
Mutual labels:  directive
ngx-echarts
Apache ECharts component for Angular(基于 Angular 的 Apache ECharts 组件)
Stars: ✭ 82 (+412.5%)
Mutual labels:  ngx

Angular Ellipsis

Build Status Coverage Status Commitizen friendly code style: prettier

A simple lightweight library for Angular which removes excess text and add ellipsis symbol to end of text before text overflows container.

This is a simple library for Angular, implemented in the Angular Package Format v5.0.

Install

npm i @thisissoon/angular-ellipsis --save

app.module.ts

import { EllipsisModule } from '@thisissoon/angular-ellipsis';

@NgModule({
  imports: [EllipsisModule],
})
export class AppModule {}

Example

app.component.html

<p class="foo" snEllipsis>
  ...
</p>

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Making Commits

This repo uses Commitizen CLI and Conventional Changelog to create commits and generate changelogs. Instead of running git commit run git cz and follow the prompts. Changelogs will then be generated when creating new releases by running npm run release.

Making Releases

Run npm run release to create a new release. This will use Standard Version to create a new release. Standard Version will generate / update the changelog based on commits generated using Commitizen CLI, update the version number following semantic versioning rules and then commit and tag the commit for the release. Simply run git push --follow-tags origin master.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].