Your Choice JavaScript News

Angular News Friday, March 2 New application state, Action handler, Google & more…

Angular News TLDR / Table of Contents

  • Object.assign() vs Object Spread { … } In Angular Ngrx Reducers🥊
    • Ngrx is a state management library which is used to implement one way data flow with centralized state store. Components and services dispatch actions in response to events triggered by user…
    • new application state, action handler, reducer action handler, new object, state type
  • YouTube recruiter sues Google for allegedly refusing to hire white and Asian men
    • Former YouTube recruiter Arne Wilberg claims Google systematically favored “diverse” candidates.
    • Google, Wall Street Journal, unnamed Google employees, ,
  • Comparing Frameworks: Hello World! – The Web Tub –
    • The fact that Onsen UI is built on top of Web Components makes us proud to be framework agnostic. However, there are so many options out there that we can feel overwhelmed when it comes to choosing a…
    • Onsen UI, Onsen UI components, Onsen UI samples, playground app, Hello World app
  • Architecture in Angular projects – Cyrille Tuzi –
    • One year ago, I published Understanding Angular modules (NgModule). This post was focused on a technical point : scope, to know when to import a NgModule. You should read it first, but it didn’t…
    • modules, services, , ,
  • JazzCon.Tech
    • JazzCon.Tech Website JavaScript HTML CSS Conference
    • New Orleans, community spirit, previous event, intimate event, unique experience
  • Typed actions are implemented using action type enum and corresponding action classes with type property and optional typed payloadTyped stateIt is very useful to define a type of the state object which is managed by the reducer.
  • Typing return value of our reducer is in fact the main ingredient for enabling great Typescript support discussed in this article – Example of a todos.reducer.ts file with all necessary type declarations for proper type-checking and code-completion supportCreating new state using Object.assign()To make our reducer useful we have to provide…
  • Returning of a new object has additional benefit of making implementation immutable which helps with the performance of our app, especially with change detection.Lets focus on the FILTER action which updates a value of the filter property in our state.
  • After all, were using Typescript and we are interested in the benefits it has to offer – Objects with additional properties which are not specified in the type of the reducer state will unfortunately NOT produce type errorsWe can make this work by using Typescript generics and specifying a type…
  • Editor code completion supportAnother huge benefit of this approach is the great code completion support from IDEs like Webstorm ( IDEA) or VS Code – Great Typescript powered code-completion support in Intellij IDEAeditorCode-completion is one of the best productivity related benefits of using TypescriptImagine a huge code base with many…

Tags: new application state, action handler, reducer action handler, new object, state type

  • Wilberg claims that Google implemented clear and irrefutable policies meant to exclude white and Asian men in an attempt to increase the companys overall diversity.
  • Wilbergs lawsuit targets Google and 25 unnamed Google employees who allegedly enforced discriminatory hiring rules, quoting a number of emails and other documents.
  • Google allegedly purged non-diverse employee applications – – Wilberg alleges that several employees complained to Google about the companys hiring policies, but were either ignored, transferred, or demoted.
  • But two former Google employees sued the company early this year for allegedly discriminating against white men, in a far more nebulous and wide-ranging complaint.
  • Conversely, Google is also facing lawsuits alleging that it underpaid women, fired an employee for pro-diversity web posts, and created a bro culture that encouraged sexual harassment.

Tags: Google, Wall Street Journal, unnamed Google employees, ,

  • For those who still dont have a preference, in this article we show how to make a simple Hello World app with some of the existing alternatives: Vanilla JavaScript, AngularJS, Angular 2+, React, Vue.js and Knockout.js.
  • Vanilla JavaScriptSince Onsen UI components behave like native DOM elements (Custom Elements) its really simple to deal with them with pure JavaScript or jQuery.
  • Onsen UI Hello WorldVanilla JavaScriptIn Onsen UI, the right place to initialize a page is in its init event.
  • Onsen UI Hello WorldReactMore examples with React Components for Onsen UI here.
  • Some of them are complex frameworks that need a lot of bootstrap code but become very handy when the app gets bigger and need a robust way of organizing data and views.

Tags: Onsen UI, Onsen UI components, Onsen UI samples, playground app, Hello World app

  • Types of AngularmodulesThere are 3 main types of NgModules you can do: – modules of pages;modules of global services;modules of reusable UI components.Youll at least do modules of pages (otherwise your app is just empty).
  • These modules contain 3 things: – /shared: services and interfaces,/pages: routed components,/components: pure presentation components.Shared services forpagesTo display a page, you need data first.
  • ReusabilityModules of global services are reusable through different projects if you take care to have no specific dependency in them (no UI or app specific code), and if you separate each features in different modules (do not put every service in just one big global module).
  • SummaryExample of a module of global services: – Modules of reusable componentsModules of reusable components are modules of UI components you would like to reuse in different projects.
  • SummaryExample of a module of reusable UI components: – ConclusionIf you follow those steps: – youll have a consistent architecture: in small or big apps, with or without lazy-loading,your modules of global services and your modules of reusable components are ready to be packaged as libraries, reusable in other projects,youll…

Tags: modules, services, , ,

  • Conference participants violating this Code of Conduct may be expelled from the conference without a refund, and/or banned from future JazzCon.Tech events, at the discretion of JazzCon.Tech Examples of harassment include offensive comments, verbal threats or demands, sexualized images in public spaces, intimidation, stalking, harassing photography or recording, sustained disruption…
  • JazzCon.Tech participants must remember that JazzCon.Tech organizers and volunteers are not trained conflict resolution specialists, nor are they security or law enforcement.
  • JazzCon.Tech organizers and volunteers will immediately escalate issues around safety, violence, or similar situations to Cobb Galleria staff or law enforcement.
  • Incident Resolution All JazzCon.Tech participants agree to treat each other with respect, regardless of whether you are in a session room or at the Cobb Galleria facilities.
  • JazzCon.Tech participants suffering outright assault or extreme harassment should contact the Cobb Galleria staff immediately, or a JazzCon.Tech organizer if they’re nearby.

Tags: New Orleans, community spirit, previous event, intimate event, unique experience

Top Angular Courses

Angular 5 (formerly Angular 2) - The Complete Guide (139,105 students enrolled)

By Maximilian Schwarzmüller
  • Develop modern, complex, responsive and scalable web applications with Angular 4
  • Fully understand the architecture behind an Angular 4 application and how to use it
  • Use their gained, deep understanding of the Angular 4 fundamentals to quickly establish themselves as frontend developers
  • Create single-page applications with on of the most modern JavaScript frameworks out there

Learn more.

The Complete Angular Course: Beginner to Advanced (40,747 students enrolled)

By Mosh Hamedani
  • Establish yourself as a skilled professional developer
  • Build real-world Angular applications on your own
  • Troubleshoot common Angular errors
  • Master the best practices
  • Write clean and elegant code like a professional developer

Learn more.

Learn and Understand AngularJS (66,998 students enrolled)

By Anthony Alicea
  • Learn fundamental Javascript concepts that power AngularJS.
  • Write quicker, better AngularJS code by discovering how AngularJS itself is built.
  • Become fluent in AngularJS terminology, such as dependency injection, services, directives, transclusion, and more.
  • Realize the power of dependency injection, and how AngularJS accomplishes it.
  • Design custom directives and save time and energy with easily reusable components.
  • Understand what a Single Page Application (SPA) is, and how they work.
  • Build a Single Page Application (SPA) in AngularJS.
  • Be the coder that explains AngularJS to everyone else, because you understand it better than anyone else.
  • Get new free lectures during 2015, keep up with the development of AngularJS 2.0, and get a MASSIVE discount on a future AngularJS 2.0 course in 2016!

Learn more.

Angular 5 NgRx Store Masterclass & FREE E-Book (3,038 students enrolled)

By Angular University
  • Build a Chat Application From top to bottom!
  • Understand the Flux Architecture, its benefits, strong points and most beneficial use cases
  • Understand Single Store Architecture solutions like Redux or Ngrx Store
  • Know all the usual notions of Store solutions, like Actions and Reducers
  • Know how to model the application state of a single store architecture, leveraging Typescript custom types to do so
  • Know the difference between a model and a view model and what to put inside the store
  • know how to derive a view model from a model and how to do that
  • understand the notion of selector in the context of store solutions
  • know the difference between smart components and presentation components
  • know how to build smart components using the Ngrx Store library
  • know how to use the Ngrx Effects library
  • know not only the Ngrx libraries but know also how they all fit together and what are the benefits of a store solution
  • know how to setup the Ngrx store developers tools
  • know how to debug RxJs applications in general

Learn more.

Angular Front To Back (6,984 students enrolled)

By Brad Traversy
  • Build amazing single page applications using Angular 5+
  • Master Angular concepts
  • Understand the file and folder structure of an Angular application
  • Build a client management application with authentication and Firebase's Firestore
  • Integrate Bootstrap 4 into Angular projects

Learn more.

Angular Crash Course for Busy Developers (44,316 students enrolled)

By Mosh Hamedani
  • Master the essential Angular concepts
  • Troubleshoot common runtime errors
  • Write cleaner, more maintainable code

Learn more.

Angular (Angular 2+) & NodeJS - The MEAN Stack Guide (26,806 students enrolled)

By Maximilian Schwarzmüller
  • Build real Angular + NodeJS applications
  • Understand how Angular works and how it interacts with Backends
  • Connect any Angular Frontend with a NodeJS Backend
  • Use MongoDB with Mongoose to interact with Data on the Backend
  • Use ExpressJS as a NodeJS Framework
  • Provide a great user experience by using Optimistic Updating on the Frontend
  • Improve any Angular (+ NodeJS) application by adding Error Handling

Learn more.