Selasa, 03 November 2015

AngularJs button material example.

AngularJs button material example.

Based on mdButton API Documentation <md-button> is a button directive with optional ink ripples (default enabled).

In this post I will make a example for:
  • Flat button
  • Raised button
  • FAB button 
  • Button with link
  • Button Themed
AngularJs Button example

Read more »
Baca selengkapnya

Kamis, 29 Oktober 2015

Angularjs routing asp.net mvc example

Angularjs routing asp.net mvc example

In this article I try to make a simple example about how to apply angularjs routing for asp.net mvc application. After this you can know how to use angularjs routing and angularjs routing for MVC. Beside that you can know how to rout with parameter, how to use ng-view.
agenda:
  • Add MVC application
  • Reference angularjs to MVC application
  • Add angularjs router and angularjs controller
  • Modify _Layout.cshtml and some mvc view to use angularjs.
  • Run and see result

Read more »
Baca selengkapnya

Rabu, 28 Oktober 2015

Selasa, 27 Oktober 2015

How to use ng-paste and ng-cut?

How to use ng-paste and ng-cut?

- ng-cut is specify custom behavior on cut event.

How to apply ng-cut?

 <input ng-cut="cut=true" ng-init="cut=false; value='please cut me'" ng-model="value">  
You just cut it: {{cut}}

- ng-paste is specify custom behavior on paste event.

How to apply ng-paste?

  <input ng-paste="paste=true" ng-init="paste=false" placeholder='please paste here'>  
pasted: {{paste}}

Full code for this example as below:

Read more »
Baca selengkapnya

Senin, 26 Oktober 2015