ng-util
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

ng-util v0.0.5

Site | Docs | Wiki

The ng-util library export lots of utility functions which you need in your day-to-day angular app development. Our main intent is to make developer life easy by saving lots of time which we spent on googling and finding the right code or reinventing the wheel.

Installation

$ npm instal ng-util

Usage

import { Component } from '@angular/core';
import { StringUtilService } from 'ng-util';
@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css'],
  providers:[StringUtilService]
})
export class AppComponent {
  query: string;
  title = 'app';
 
 
  constructor(private strUtil: StringUtilService) {
    this.query = this.strUtil.jsonToQueryString({
      id: 10,
      name: 'tom'
    });
  }
}
<h2>Query:{{ query }}! </h2>

Output:

Query: ?id=10&name=tom

Package Sidebar

Install

npm i ng-util

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

65.3 kB

Total Files

21

Last publish

Collaborators

  • opencodes