Build an App with Vue.js: A Lightweight Alternative to AngularJS – Hell’s Kitchen

Build an App with #Vue.js: A Lightweight Alternative to #AngularJS

  • Vue is a library that focuses heavily on the ViewModel—the two-way data bindings that tie what we see and interact with on the screen with the application’s data model.
  • To explore Vue’s main features we will simply be working with local data on the client side, but towards the end we’ll see how we can use the  package to send HTTP requests to a back end.
  • The   method is provided by Vue and when used to put data onto an array, triggers a view update.
  • If they click “OK”, the event is removed by using Vue’s   convenience method which takes care of finding the index passed in from the view and removing the element from the DOM.
  • To build a full-fledged single page application with Vue, we can use vue-router which integrates with the Vue.js core to handle routing.

Build an App with #Vue.js: A Lightweight Alternative to #AngularJS. Front-end frameworks like AngularJS allow us to build out very nice single page applications easily, especially when we become well versed with all the concepts.
Continue reading “Build an App with Vue.js: A Lightweight Alternative to AngularJS – Hell’s Kitchen”

Sort and Filter a Table Using Angular

Sort and Filter a Table Using #Angular  #angularjs

  • Here’s the line that we will add to our ng-repeat code from our file:

    That’s all we need to change the sort order of our ng-repeat.

  • Here’s the updated section inside of our :

    Now as you click the links across your table headers, you’ll see your table sorted since we are setting the

    Next up, we’ll be adding a way to change the sort order so users can sort by ascending or descending.

  • The way we will give users the option to reverse the sort is to add in the of our table headers.
  • Now if you click your header links, you’ll see the sort order changing.
  • With a few Angular directives, we are now able to show proper feedback for sorting and for sort order.

When building Angular applications, one of the cornerstones we will…
Continue reading “Sort and Filter a Table Using Angular”

DHTMLX Gantt Chart Usage with Angular JS 2 Framework

  • To add data loading to our angular gantt chart, we are going to add task and link services.
  • Angular services can be injected using Dependency Injection mechanism and include data, function or some features necessary for your application.
  • We’re going to create a data service that we’ll use to provide our gantt chart with tasks.
  • So, our component can use that services to get tasks and links.
  • Also here we call our services to get function and then are waiting for response to put data to gantt.

DHTMLX Blog – Rich JavaScript Library and UI Widgets – News, Tips, Updates
Continue reading “DHTMLX Gantt Chart Usage with Angular JS 2 Framework”

jquery

In What criteria should I use Web Method for Ajax?  #angularjs #reactjs

  • Ajax or jQuery Ajax, , is used to call a service or api over http asynchronously from the client side code.
  • one of the parameters used in this method is the url which accepts the api or service url to which the request has to be made.
  • In classic ASP.net, you can also specify a name of a method that resides in your code behind which returns you the data to the client side from the server side code usually written in C# or VB.net.
  • such methods have to be declared as web methods in the server side so you can make ajax calls to them from the client side so that they will treat them as service.

I am getting confuse, when I look at to learn about ajax. So many of them using in a different way. For example they are using webservice,WebMethod, or server side
Continue reading “jquery”

Build an App with Vue.js: A Lightweight Alternative to AngularJS

  • Vue is a library that focuses heavily on the ViewModel—the two-way data bindings that tie what we see and interact with on the screen with the application’s data model.
  • To explore Vue’s main features we will simply be working with local data on the client side, but towards the end we’ll see how we can use the package to send HTTP requests to a back end.
  • The method is provided by Vue and when used to put data onto an array, triggers a view update.
  • If they click “OK”, the event is removed by using Vue’s convenience method which takes care of finding the index passed in from the view and removing the element from the DOM.
  • To build a full-fledged single page application with Vue, we can use vue-router which integrates with the Vue.js core to handle routing.

Front-end frameworks like AngularJS allow us to build out very nice single page applications easily, especially when we become well versed with all the…
Continue reading “Build an App with Vue.js: A Lightweight Alternative to AngularJS”

Angular 2 Reactive Forms Validations – JavaScript Screencasts And Tutorials

  • Every time the input changes, we make a very basic check, if the input is empty we set a new error that will be named required.
  • Angular 2 provides basic Validators that we can import and use when creating our form’s Controls (here the name Control).
  • The validateName function will be called every time that the name input is modified.
  • The most important part here is that a value needs to be returned:

    If you only need some basic validations, I advise you to go with the default ones here.

  • Observables are very cool to use but I’d personally go with functions, every requirement are declared while creating the form so if you use meaningful names, the whole validation system can be understood in one look without even checking inside the functions.

This part is very important, it’s your last protection before the data are sent to your server so be careful here.
Two ways to do the work:
Continue reading “Angular 2 Reactive Forms Validations – JavaScript Screencasts And Tutorials”

Building a Designer News Clone with AngularJS and Firebase

  • In the end, I grouped the data into two main arrays – stories and users.
  • Each user in the user array has the following data –

    Each story in the stories array has the following data –

    Creating a user is relatively simple with Firebase.

  • Along with the other information given by the user, I pass in the “uid” to a new user in the users array.
  • This creates a connection between the user created by the Firebase authentication service, which is referenced by the uid, and the user in the users array, which is referenced by the array key.
  • When a user is created, we can check for the current user by looping through the users array and finding the user with the same uid as the current authorised user –

    When adding a new story, I had to make sure that I added the details to the “stories” array, but also to the story author’s posts in the “users” array.

If you haven’t heard of it, Firebase is a platform that allows you to store and sync data in realtime. It essentially gives you the functionality of a backend database, but presented in a much simpler format, as it is NoSQL, and only using front-end code.
Continue reading “Building a Designer News Clone with AngularJS and Firebase”