The Performance Difference Between ng-bind and {{}}

Interpolation is one of the first things newcomers to Angular learn.
You can’t get around writing your first Angular “Hello, World” without some sort …
Continue reading “The Performance Difference Between ng-bind and {{}}”

5 Features To Watch Out For in Angular v4

“5 Features To Watch Out For in #Angular v4” by @scotch_io #javascript #AngularJS

  • They include but not all:

    Angular v4 is in RC; this means you can start using it in your project hoping that no breaking changes will be released at final.

  • With Angular v4 (RC), you can use the syntax to handle such case:

    Let’s have a look at a possibly realistic example:

    We are simulating an HTTP async request with Observable that returns a user payload if successful.

  • Now, TypeScript allows you to explicitly say a variable can have any of those types:

    The above example simple says:

    This feature is now compliant in Angular (v4), so you could do stuff like this:

    Server-side rendering is the act of spitting the same HTML content in virtual DOM to the server so that they are rendered appropriately by the browser on request.

  • The project was maintained entirely outside Angular, but from Angular v4 forward, Universal will become a core Angular module.
  • Angular v4 ships flattened versions of modules in the ECMAScript Module format.

By now, most probably, we have come in peace with the fact that Angular will be rolling out features using semantic versioning. This means…
Continue reading “5 Features To Watch Out For in Angular v4”

DailyJS: How Apple Could Fix iWork: JavaScript

  • The company where I work makes a popular Mac application, and the removal of AppleScript from iWork caused a backlash from customers who rely on this feature for integration between our program, and Pages and Numbers.
  • Scripting Bridge provides an Objective-C API for sending and receiving Apple events, so you can take control of applications in Objective-C.
  • JSTalk is one such example:

    JSTalk is a scripting language for Mac OS X built on top of JavaScript, with a bridge to Apple’s Cocoa libraries.

  • You can use it to communicate with other applications just like AppleScript does JSTalk is built on top of Apple’s JavaScriptCore, the same JavaScript engine that powers Safari.
  • I recently wrote about the importance of embedded JavaScript, and I think Apple could gain a lot by adding JavaScript APIs to their applications.

Apple recently updated iWork and removed a whole bunch of features. The company where I work makes a popular Mac application, and the removal of AppleScript from iWork caused a backlash from customers who rely on this feature for integration between our program, and Pages and Numbers.
Continue reading “DailyJS: How Apple Could Fix iWork: JavaScript”

Integrating Angular with Node.js RESTful Services

  • Learn how to integrate Angular with Node.js RESTful services.
  • In this course, Integrating Angular with Node.js RESTful Services, you’ll learn how Angular and Node.js can be used to build an application that allows users to view customer data, page through it, and then perform insert, update, and delete operations.
  • Next, you’ll discover how to build a Node.js RESTful service with Express to expose GET, POST, PUT, and DELETE actions to clients.
  • Finally, the RESTful service actions are consumed by an Angular application using a reusable service class, the built-in Http client, and RxJS functionality such as observables.
  • By the end of the course, you’ll understand the process involved to not only create RESTful services using Node.js/Express, but also how Angular can be used to consume these services and display and capture data in the user interface.

Learn how to build an Angular and Node.js application that can perform create, read, update and delete (CRUD) operations.
Continue reading “Integrating Angular with Node.js RESTful Services”

MEAN Stack Tutorial MongoDB ExpressJS AngularJS NodeJS (Part III)

#angularjs Tutorial for Beginners With #nodejs #ExpressJS and #mongodb #javascript Part I

  • We are going to build a full stack Todo App using the MEAN (MongoDB, ExpressJS, AngularJS and NodeJS).
  • TL; DR: NodeJS has been built from bottom up a non-blocking I/O paradigm, which gives you more efficiency per CPU core than using threads in other languages like Java.
  • But, now you can found it in smartphones, servers, robots, Arduino, RaspberryPi… Thus, it does not matter what technology you use to build web applications, you need to be familiar with Javascript.
  • Programming languages that are blocking (Java, Ruby, Python, PHP, …) overcomes concurrency using many threads of execution while JavaScript handles it using non-blocking event loop in a single thread.
  • These are the changes added to perform the remove functionality:

    Do the same for the details Template

    And also in the details controllers

    When we remove elements from the todos array they also disappear from the DOM.

Adrian Mejia blog about programming and software engineering. Featuring MEAN stack (AngularJS, NodeJS, MongoDB and Express), BackboneJS, RESTful APIs, Algorithms and data structures.
Continue reading “MEAN Stack Tutorial MongoDB ExpressJS AngularJS NodeJS (Part III)”