What’s New In Angular 4.0

  • In Angular 4.0, some under the hood changes, some improvements, and performance improvements have been done.
  • In Angular 4.0, some under the hood changes, some improvements, and performance improvements have been done.
  • ngIf, 

    In Angular 2.0, if we wanted to use ngIf with multiple conditions or specifically with else, we write, as shown below.

  • In Angular 2.0

    Output

    In Angular 4.0 

    NgIf syntax has been extended to support the else clause to display the template when the condition is false.

  • Example OutputIn Angular 4.0NgIf syntax has been extended to support the else clause to display the template when the condition is false.

In this article, I am explaining what is new in Angular 4.0.
Continue reading “What’s New In Angular 4.0”

simpleresource

  • SimpleResource aims to provide a simple way to connect your Angular application to a RESTful backend API.
  • Also, if your API is build using Ruby on Rails, and requests will be by default wrapped under this namespace.
  • For example, if your namespace is , then data send will look like:

    Please note that it is possible to avoid this behavior by defining a method on (see the configuration section) and change the way data are sent to the server.

  • As SimpleResource is based on Angular $resource (paramDefaults), you are welcome to take a look at the offical documentation at parameterized URL template with parameters prefixed by /user/:username`.
  • As SimpleResource is based on Angular $resource (paramDefaults), you are welcome to take a look at the offical documentation at you instanciate using a string, you need to specify the singular name of your resource.

Connects business objects and REST web services for Angular.js
Continue reading “simpleresource”

ng-FitText.js : AngularJS Flexible Font Size DirectiveAngularJS

ng-FitText.js : #AngularJS Flexible Font Size Directive
 #javascript

ng-FitText.js makes font-sizes flexible. Use this AngularJS directive in your fluid or responsive layout to achieve scalable headlines that fill the width of a parent element.
Continue reading “ng-FitText.js : AngularJS Flexible Font Size DirectiveAngularJS”

Angular Swing : AngularJS directive for Swing CardsAngularJS

Angular Swing : #AngularJS directive for Swing Cards
 #javascript

AngularJS directive for Swing: A swipeable cards interface. The swipe-left/swipe-right for yes/no input. As seen in apps like Jelly and Tinder, and many others.
Continue reading “Angular Swing : AngularJS directive for Swing CardsAngularJS”

Angular Fan Menu for web and mobile

#AngularJs Fan Menu for web and mobile
 #javascript

Cuppa Angular Fan Menu is an angular 1 directive for cool menu componet for web and mobile, developed using angularJS, CSS3, HTML5.
Continue reading “Angular Fan Menu for web and mobile”