NG6 starter for new Angular projects - 2016-09-18
The de-facto starter repo for building scalable apps with AngularJS ^1.5, ES6, Gulp and Webpack
The de-facto starter repo for building scalable apps with AngularJS ^1.5, ES6, Gulp and Webpack
Great series of recommendation how/why to start new “NG2 ready” Angular 1.5 app with architecture of component-oriented approach.
Lifecycle hooks are simple functions that are called at specific points of a component’s life in Angular apps. They landed in AngularJS 1.5 and are used with .component()
method and they were inspired of Angular 2 hooks.
Implementation custom Model validation is typically done by extending the built-in $error
object to ngForm
models.
Prior to AngularJS 1.3 custom validation was done by injecting a function into the ngModel.$parsers
array pipeline and manually setting validation states using $setValidity('visa', true)
if the Model value matched a Visa credit card expression format, for example.
AngularJS 1.3+ has the $validators
pipeline object, which requires no manual setting of validation states.
Let’s take a look of old school way then we can shift to ngModel.$validators
technique.
To rock the interview to achieve what you deserve and to improve your concepts about front end technologies, I have consolidated a list of questions and answers. It’s a one stop solution for front end interview process.
AngularJS 1.5 introduce .component()
helper method which is much simpler than the .directive()
definitions and advocates best practices and common default behavior.
Using .component()
will allow to write in Angular 2 style as well, which will turn transition to Angular 2 much easier.
Let’s compare the difference in syntax and the possibility of new abstraction.
The top 10 mistakes when beginners start to develop on AngularJS.
AngularFire is the officially supported AngularJS binding for Firebase. The combination of Angular and Firebase provides a three-way data binding between your HTML, your, JavaScript, and the Firebase database.
In this article, I would like to create short reference for how add/remove/toogle
class in pure Javascript and with framework.