OdeToCode | 16 Oct 2014 09:12
Scott Allen writes "....In a previous post we looked at a custom validation directive to confirm a user’s password.
The bigger picture from the post was not about how to register a user for a website, but how to work with the new validation and validation message..."
Read more » Working with Validators and Messages in AngularJS
OdeToCode | 14 Oct 2014 09:12
Read more » Features of ES6 Part 9: Classes
OdeToCode | 13 Oct 2014 09:12
Scott Allen writes "....Form validation and custom validation directives are relatively easy with the changes in Angular 1.3. Try the sample plunk here. Let’s look at the scenario where we need to confirm a new user’s password during registration. Registration is not so..."
Read more » Confirm Password Validation in AngularJS
OdeToCode | 30 Sep 2014 09:12
Scott Allen writes "....In a previous post we looked at template literals. You might have glanced at the code in that post and thought: “gee, that’s useful”. Or, perhaps you are more the skeptical, security conscious type who thought “gee, new and easy ways to create..."
Read more » Features of ES6 Part 8: Tagged Templates
OdeToCode | 18 Sep 2014 09:12
Read more » Features Of ES6 Part 7: Template Literals
OdeToCode | 17 Sep 2014 09:12
Scott Allen writes "....One of the reasons for Angular’s success is the flexibility in the building blocks the framework provides. There is a delicate balance between productivity and flexibility. A heavily opinionated framework can be make a team highly productive, but..."
Read more » Declarative Physics with PhysicsJS and AngularJS
OdeToCode | 15 Sep 2014 09:12
Scott Allen writes "....In C# we’ve always had declaration statements for declaring variables, and expression statements to produce values. In C# 6 we can mix a declarations with an expression to declare a new variable and produce a value. The canonical example is the..."
Read more » C# 6.0 Features Part 3: Declaration Expressions
OdeToCode | 11 Sep 2014 09:12
Scott Allen writes "....To destructure an object is to dismantle or tear apart an object.
In ES6, a destructuring assignment allows us to tear apart an array or object into individual pieces that we can assign to variables. The square brackets [ and ] are used to..."
Read more » Features Of ES6 Part 6: Destructuring
OdeToCode | 10 Sep 2014 09:12
Scott Allen writes "....AngularJS provides protection against cross-site scripting attacks by default. Let’s look at some examples. HTML Entity Encoding With ngBind Consider the following controller which maintains a collection of strings with HTML inside...."
Read more » A Journey With Trusted HTML in AngularJS
OdeToCode | 02 Sep 2014 09:12
Scott Allen writes "....The spread operator shares the same syntax we saw with rest parameters, a series of three dots (...). However, a rest parameter will collect individual parameters into an array when you use the dots in a function parameter definition, while the..."
Read more » Features Of ES6 Part 5: The Spread