Categories
Angular AngularJS General JavaScript

Flowjs – Angular HTML5 Uploader

Flow.js is javascript library which is provides multiple simultaneous, stable and resumable uploads via the HTML5 File API. This library allows automatic resume uploading file when internet connection is lost
either locally or to the server. Additionally its provide a facility to pause, resume and recover uploads without losing any data because flow.js upload file in chunks so only currently chuck is aborted not entire upload.

Flow.js does not depends on third party library, its use HTML 5 API. Flow.js have a ability to break / chunks file in smaller pieces, that’s why currently flow.js support is limited to Firefox 4+, Chrome 11+, Safari 6+ and Internet Explorer 10+.

  1. Flow.js is currently available for angular.js (ng-flow)
  2. JQuery and node.js backend (link). 

How to install?

Download latest build from

http:// https://github.com/flowjs/flow.js/releases

or bower :

http://bower install flow.js#~2

or use git clone http://git clone https://github.com/flowjs/flow.js

How to use Flow.js?

var flow = new Flow({
  target:'/api/photo/redeem-upload-token', 
  query:{upload_token:'my_token'}
});
// Flow.js isn't supported, fall back on a different method
if(!flow.support) location.href = '/some-old-crappy-uploader';

User can either selected and drag-dropped, just assign drop target and a DOM item to be clicked for browsing:

flow.assignBrowse(document.getElementById('browseButton'));
flow.assignDrop(document.getElementById('dropTarget'));

After this, interaction with Flow.js is done by listening to events:

flow.on('fileAdded', function(file, event){
    console.log(file, event);
});
flow.on('fileSuccess', function(file,message){
    console.log(file,message);
});
flow.on('fileError', function(file, message){
    console.log(file, message);
});

Read full documentation on below link:

Flow.js : https://flowjs.github.io/ng-flow/

Categories
Angular Laravel PHP

Instamojo Payment Gateway

 Instamojo is a free Payment Gateway for 5,00,000+ Businesses in India. There is no setup or annual fee for this payment gateway. Just pay a transaction fee of 2% + ₹3 for the transactions. Instamojo accepts Debit Cards, Credit Cards, Net Banking, UPI, Wallets, EMI, NEFT and IMPS.

Instamojo.com is a digital payments platform bundled with tons of e-commerce features to enable any business or individual to sell, manage & grow effortlessly, securely and cost-effectively.

It was not easy to make it work in India because most of the payments are handled through credit card and PayPal and very few Indians use them. Then after RBI regulations even using PayPal within India was impossible.

Follow the given steps for easy Integration in Laravel,

Instamojo PHP API

Assists you to programmatically create, edit and delete Links on Instamojo in PHP.

Installing via Composer –

$ php composer.phar require instamojo/instamojo-php

Note: If you’re not using Composer then directly include the contents of src directory in your project.

And visit this link for its usage.

Further documentation is available at https://docs.instamojo.com/v1.1/docs


Categories
Angular AngularJS ES6 General JavaScript TypeScript

Dragula – A simple drag and drop library

In this article, we will take quick look at the process of creating drag and drop in AngularJs and Angular application using Dragula. For AngularJs and Angular there are two different Dragula library are available, i added link of all those libraries at the end of this article. Dragula gives you simple way to add advance drag and drop in your application.

Dragula includes a services, directives, events and options for easily
implementation in you application. You can easily drag and drop from one container to another also you can sort a list of order and many more are available in Dragula.

Installation : 

AngularJs : 

You can get it on npm.

npm install angularjs-dragula --save

Or bower, too.

bower install angularjs-dragula --save


Angular: 

npm install ng2-dragula# 
or
yarn add ng2-dragula

For more info please visit following links.

AngularJs: 

https://github.com/bevacqua/angularjs-dragulah

https://bevacqua.github.io/angularjs-dragula/

Angular: 

https://github.com/valor-software/ng2-dragula

https://valor-software.com/ng2-dragula/

Categories
Angular General

Angular – Font Awesome Icons

Font awesome introducing icon module & component for angular,

 API docsThe official Angular module/component documentation
 GitHub projectWhere to submit issues and collaborate/contribute to codebase

Install Using npm : –

  • npm i @fortawesome/angular-fontawesome

Install Using yarn : –

  • yarn add @fortawesome/fontawesome-svg-core
  • yarn add @fortawesome/free-solid-svg-icons
  • yarn add @fortawesome/angular-fontawesome

For more details – https://fontawesome.com/how-to-use/on-the-web/using-with/angular

Categories
Angular AngularJS ES6 General JavaScript TypeScript

CKEditor – Rich Text Editor

CKEditor permits you to directly add the JavaScript based codes within online applications or web pages, it is coming under commercial and open source licenses. If you want to give a more flexible area to user for write any content then CKEditor is better way over adding textarea. In CKEditor three types of preset are given full, minimal and default, these preset are responsible for defining the appearance of your CKEditor. Styles, tags, source etc. are in toolbar to use.

Why CKEditor ?

  • Easy Images : 
  • Insert images which are automatically rescaled, optimized, responsive and delivered through a blazing-fast CDN. All this with virtually zero server setup.
  • CKFinder : Enrich CKEditor with image and file uploads.
  • Spell Checker : Spell checking abilities with additional languages.
  • Full control over content: HTML filtering, view source mode, Long-term support (LTS) until 2023, and many more…

Reference:  https://ckeditor.com

Categories
Angular ES6 TypeScript

NG-ZORRO – UI Library for Angular

Ng-Zorro is a UI library for angular which contains high quality components and demos for building rich and interactive user interfaces. Currently most stable version of ng-zorro is 1.8.0.  It provides good development experience to developers, it contains number of component to use and have a good documentations.

Features :

  • An enterprise-class UI design language for web applications.
  • A set of high-quality Angular components out of the box.
  • Written in TypeScript with complete defined types

Installation :

ng-zorro recommend using @angular/cli to install.

You can also install ng-zorro-antd using npm or yarn.

For more information visit at –

https://ng.ant.design/docs/introduce/en

github : https://github.com/NG-ZORRO/ng-zorro-antd

Categories
Angular

The Angular Console – for Developers

I am so happy, because angularconsole take responsibility of

  • Build CLI Commands Visually.
  • Trivial Code Generation
  • Run Custom NPM Scripts
  • Discover and Install Extensions
  • Build CLI Commands Visually
  • Integrated Terminal Output
  • Import Existing Projects

It’s a direct interface for performing many task when you go with angular.  You can perform Test, Build, Generate Component and also Serve application.

for more info – angularconsole

Categories
Angular

Angular 5 From Scratch – Best Tutorial Free..!! Free..!!

It’s best tutorial for beginner,  It covers step by step requirements for angular & also explain in simple way with Theory & live demos by punker & with video … I am search lot of tutorials but this one is best for me it maybe help full for others…..

It Covers –  #es6, #typescript, #oops , #angular, #livedemos, #videos

E-book – Free e-book over 700+ pages with deep information

Tutorial Overview : – Angular 5 Tutorial

Categories
Angular AngularJS General Laravel PHP

DevDocs – combines multiple API documentations in a fast, organized, and searchable interface.

DevDocs contain 100+ tutorial like Angular, Javascript, HTML, CSS etc with latest versions. It aims to make reading and searching reference documentation fast, easy and enjoyable. All the popular languages release versions documentations present in DevDocs.

 

For more details visit devdocs.io

Categories
Angular

Ahead-of-time (AOT) vs just-in-time (JIT)

The difference between AOT and JIT is a matter of timing and tooling.

  • The AOT  compiler runs once at build time using one set of libraries.
  •  The JIT runs every time for every user at runtime using a different set of libraries.

These are main two compilation process of angular application. I am mention here some reference links.

#Reference