官术网_书友最值得收藏!

Preface

The AngularJS framework is a turning point in the evolution of web development. It really helps developers to produce professional web apps by writing less JavaScript code.

The ngAnimate module, developed by the core team of AngularJS and the open source community, integrated AngularJS features with animation web standards, providing all the benefits from standardization with AngularJS development patterns.

Before animations were introduced to AngularJS, integrating animations was a bit tricky, as in AngularJS, changes to the model affect the view implicitly (it's part of the two-way data binding concept). In other words, the DOM life cycle management is often controlled by the AngularJS core and animations should be triggered in between those manipulations. To solve this problem, the ngAnimate module was written and redesigned to be completely based on CSS classes. This means that animations should be applied based on element classes. Classes are appended or removed from elements on specific events, so we are able to apply animations as the entry of an element on DOM and the imminent exit of an element from DOM.

This book will help you learn from the beginning how to add animations to AngularJS web apps, focusing on the ngAnimate module. It's an optional module in AngularJS because the framework is going in a direction that will allow you to choose which modules to use so that the module can fit your needs and be as light as you desire.

主站蜘蛛池模板: 达尔| 红安县| 阳高县| 灵川县| 九龙城区| 雷波县| 青铜峡市| 衡水市| 顺昌县| 玉龙| 和田县| 富裕县| 安塞县| 吴川市| 临澧县| 东乡族自治县| 勃利县| 双流县| 黄冈市| 沈丘县| 三明市| 平原县| 海口市| 屏边| 明光市| 康马县| 称多县| 清镇市| 泌阳县| 准格尔旗| 惠来县| 牙克石市| 六枝特区| 灵寿县| 孝义市| 灵宝市| 沂南县| 韩城市| 图木舒克市| 泗阳县| 连州市|