Tuesday, 2 August 2016

How to use filters in AngularJS

angular.jpg

Welcome to FindNerd. Today we are going to discuss one of feature of angularJS that is filters. We will discuss angularJS features one by one so keep reading our blogs.

Filters play with data. It transforms the data as well as change the format of data.

There are different types of filters available but you can also build your own by using API $filterProvider.

You can apply the filter on the expression by using pipe(|) character in view template.

Read more about How to use filters in AngularJS visit Findnerd

Wednesday, 27 July 2016

Any Pointers on How Can I Speed Up my Node.js Application ?

nodejs1.jpg

Performance optimization

I am planning to develop a new web application using Nodejs and I want it to make it  faster than usual in order to keep it ahead in the competitive fast web technology.

So can anyone please suggest some possible steps and pointers through which I can speed up my Node.Js application.

Speedup mean serving too many clients without slowing down your server. One response will always take the time it needs, the question is for a response not to wait until another finishes.

You cannot speed up nodejs more than it is capable (assuming you have written the most performant code possible), but you can scale your application.

Thursday, 7 July 2016

Skeleton Animation in Unity


unity-5.jpg
Hey Guys, this blog is part of a series "Skeleton Animation in Unity" . In this i'll try to explain "how to instantiate spine objects in Unity".

For this make sure you have "spine-unity.unitypackage" plugin in your project.

Step 1: We'll have three files of a spine/skeleton object from designer end.

Step 2: Right Click on Project region -> Create ->SpineSkeletonData.

Read more at Skeleton Animation in Unity visit Findnerd.

Tuesday, 28 June 2016

Chapter 3: Authentication using node.js(passport.js) and mongoDb


Authentication nodejs mongodb.jpg

As we all know authentication plays an important role in every site. Here In this blog I am explaining how we will authenticate our site in node.js as a backend and mongoDb as a database. To authenticate I am using passport.js which will help to login with facebook,twitter and google etc.
In this article I am explaining local authentication with a mongoDb backend.
Prerequisites:
Install node.js,express.js and mongoDb .For installing them please read my previous blog.
when all installation are completed then we will create a new project using express.
  1. express AuthApp
  2. cd AuthApp
  3. npm install
Next we will install passport module by using below command.
  1. npm install passport

Thursday, 9 June 2016

Using href link values inside your select box


javascript.jpg
In this post, you will learn how to connect select box option with the anchor tag link.
Sometimes you want to change the select box value like an anchor tag with the refresh of page. Lets understand this with an example.
If you have select box in your html code like this:
  1. <select name=“language”>
  2. <option value=“english”>English</option>
  3. <option value=“hindi”>Hindi</option>
  4. <option value=“french”>French</option>
  5. <option value=“german”>German</option>
  6. </select>
Now, you want to refresh the page with the value selected from the select box. you can do the same thing with the anchor tag simply by giving the value to href attribute and it will refresh the page each time you click on anchor tag with the value associated with it…….

Here is not the end…. To read Full Blog About Using href link values inside your select box Click here>>

To read such more Blogs like this Visit our Nerd Digest’s Newest Javascript Development Blog Section at Findnerd.

Monday, 16 May 2016

Changing button text (toggle text) on click in AngularJS



Changebuttontextin angularJS.jpg

We can make a button behave like a toggling button by making a directive in AngularJS. It is very simple. You just need to bind the attribute and then check the condition.
First create a simple HTML :-
  1. <html>
  2.   <head>
  3.       <link rel="stylesheet" type="text/css" href="css/index.css">
  4.       <link rel="stylesheet" type="text/css" href="css/myApp.css">
  5.       <title>Hello World</title>
  6.   </head>
Read the full blog about Changing button text (toggle text) on click in AngularJS visit Findnerd.

Findnerd is also a best place to solve your Tech Query, Ask Questions etc.

Tuesday, 26 April 2016

Promises in Angular.JS


Angular.jpg

By using Promises we can execute a function asynchronously. we can use promises to specify what to do when a operation is success or failed. We have $q built in keyword in angular js for promises. let's create a example :
  1. .service('drawHomeCardService', function(apiCallFactory, $q) {
  2.   this.getTheLogo = function() {
  3.       var deferred = $q.defer();
  4.       apiCallFactory.getData().success(function(response) {
  5.           var logo         =  response[2].businessInfo.logoFilePath;
  6.           var logoFilePath = 'https://oyokeydev.s3.amazonaws.com/' + logo;
  7.           deferred.resolve(logoFilePath);
  8.       }).error(function(response) {
  9.           console.log('Something went wrong');
  10.           deferred.reject('Something went wrong');

Read full blog at our highly specific C, PHP, Java, iPhone, Javascript Questions, about the topic described above "Promises in Angular.JS". You can also learn much more about different programming technologies and can enhance your tech skills.