Skip to main content

Posts

Showing posts from May, 2016

What is the software license simply says ?

GNU General Public License  -  you can copy, distribute, and modify it as long as you track changes in source files and keep it under GNU GPL. You can even distribute it commercially, but you must disclose the source code or obtain a commercial license. MIT License (Expat) -  Commercial friendly Apache License 2.0 (Apache-2.0) -  Commercial friendly,  Y ou can use it as long as you keep the Apache license included and display it in your program's copyright notice. GNU General Public License v3 (GPL-3) -todo GNU General Public License v2.0 (GPL-2.0) -todo GNU Lesser General Public License v2.1 (LGPL-2.1) -todo BSD 2-Clause License (FreeBSD/Simplified)  -todo BSD 3-Clause License (Revised)  -todo Mozilla Public License 2.0 (MPL-2.0)  -todo Do What The F*ck You Want To Public License v2 (WTFPL-2.0)   - Commercial friendly Eclipse Public License 1.0 (EPL-1.0) -  todo Common Development and Distribution License (CDDL-1.0)   -todo Boost Software License 1.0 (BSL-1.0)

Angular 2 Typescript without node or npm

To getting start with angular2 app, we need to setup some bunch of  tool and boilerplate codes. Fortunately there are many easy getting-start projects available for angular2. Those are  angular-cli , angual2-seed etc. Anyway we need to rely on node and npm, that would need for real angular2 projects. But sometimes we need to test  angular2 features  and share demo codes with others. Installing large node modules and setting-up not worth for this kind of task. However for small task you can use angular2 without npm.     have a look at github repository -  https://github.com/ishara/angular2-without-npm happy coding.

java typescript comparison

I am working as java developer for many years with java swing and web service. However I don't like to write JavaScript as many java developer. Currently we got chance to work with angular2 and Typescript. Now we can manage source easily with Typescript. It makes easier to write javascript code with Typescript. Now I am trying to compare Typescript and Java. Java hello world public class HelloWorld { public static void main(String[] args) { System. out .println( " Hello Java Typescript comparison." ); } } Typescript hello world export class HelloWorld { public static main (args : string []) { console . info ( " Hello Java Typescript comparison." ); } } HelloWorld.main( null ); Java class, constructor, method and static method public class Student { private String name ; private int age ; public Student() { } public int getAge() { return age ; } public static void staticMet

Angular2 bind data only if form is submitted

How to bind data only if form is submitted in Angular2 This can be down with angular2 form handing with data-driven approach (User Angular  FormBuilder ). Template File <form [ngFormModel]='myForm' (ngSubmit)="onSubmit()"> <input type="text" [ngFormControl]="myForm.controls['userName']" /> <button type="submit">Submit</button> <button>Cancel</button> </form> <br>userName : {{originalUserName}} Angular Component Class export class AppComponent { myForm:ControlGroup; originalUserName:string; constructor(private _formBuilder:FormBuilder) { this.originalUserName = 'abc'; this.myForm = _formBuilder.group({ userName: [this.originalUserName] }); } onSubmit(form) { this.originalUserName = this.myForm.controls['userName'].value; } } GitHub Example Source

Angular 2 Training video and E book

Angular 2 is a best framework for building single page web application. Its provide major common tools and features set to enterprises developer life easier. I have found Angular 2 Training video and book, prepared by Rangle.io Team. worth to have a look and read. Download Angular 2 Training Videos Angular 2 Book