Mastering AngularJS Directives : develop, maintain, and test production-ready directives for any AngularJS-based application /: develop, maintain, and test production-ready directives for any AngularJS-based application. (2014)
- Record Type:
- Book
- Title:
- Mastering AngularJS Directives : develop, maintain, and test production-ready directives for any AngularJS-based application /: develop, maintain, and test production-ready directives for any AngularJS-based application. (2014)
- Main Title:
- Mastering AngularJS Directives : develop, maintain, and test production-ready directives for any AngularJS-based application
- Further Information:
- Note: Josh Kurz.
- Other Names:
- Kurz, Josh
- Contents:
- Preface; The Tools of the Trade; Introduction to directives; Directive Definition Object API; Priority; Terminal; Scope; Controller; Require; ControllerAs; Restrict; Template; TemplateUrl; Replace; Transclude; Compile; Link; Wrapping up definition objects; Summary; Building a Stopwatch Directive; Breaking down the stopwatch; Stopwatch requirements; The basics of testing; Creation tests; h.97b62gaiby2z; Writing the stopwatch; Stopwatch's business logic; Business logic tests; Optimizing the stopwatch; Stopwatch's filter; h.gjdgxs; _GoBack; Summary. Harnessing External JavaScript Libraries with DirectivesIncorporating third-party libraries; Testing directives that use third-party libraries; Wrapping the gauge.js file; Testing the gauge directive; Writing the gauge directive; Writing scope interaction tests; _GoBack; Wrapping the fullCalendar.js file; Introduction to the calendar directive; Testing the fullCalendar directive; Testing the calendar's initialization and MVC functionality; Writing the fullCalendar directive; Summary; Compiling the Advantages; Common use cases for compiling the DOM; Using transclusion in a directive. Unveiling transclusionCreating recursive directives; The custom recursive tree directive; Using transclusion and a templateUrl with the treeNode directive; Testing the treeNode directive; The treeNodeTemplate directive; The treeNode directive using only transclusion; Testing the treeNode directive; The treenodeNoTemplate directive; Compiling templatesPreface; The Tools of the Trade; Introduction to directives; Directive Definition Object API; Priority; Terminal; Scope; Controller; Require; ControllerAs; Restrict; Template; TemplateUrl; Replace; Transclude; Compile; Link; Wrapping up definition objects; Summary; Building a Stopwatch Directive; Breaking down the stopwatch; Stopwatch requirements; The basics of testing; Creation tests; h.97b62gaiby2z; Writing the stopwatch; Stopwatch's business logic; Business logic tests; Optimizing the stopwatch; Stopwatch's filter; h.gjdgxs; _GoBack; Summary. Harnessing External JavaScript Libraries with DirectivesIncorporating third-party libraries; Testing directives that use third-party libraries; Wrapping the gauge.js file; Testing the gauge directive; Writing the gauge directive; Writing scope interaction tests; _GoBack; Wrapping the fullCalendar.js file; Introduction to the calendar directive; Testing the fullCalendar directive; Testing the calendar's initialization and MVC functionality; Writing the fullCalendar directive; Summary; Compiling the Advantages; Common use cases for compiling the DOM; Using transclusion in a directive. Unveiling transclusionCreating recursive directives; The custom recursive tree directive; Using transclusion and a templateUrl with the treeNode directive; Testing the treeNode directive; The treeNodeTemplate directive; The treeNode directive using only transclusion; Testing the treeNode directive; The treenodeNoTemplate directive; Compiling templates and their many values; Introduction to the media player directive; Requirements for the media player directive; Testing the media player directive; Writing the media player directive; Breaking the media player directive down. Utilizing advanced templates_GoBack; The mediaelement templates; The flowplayer templates; Summary; h.gjdgxs; Communication between Directives; Testing integrated directives; Integration tests; Using scope objects for communication; h.gjdgxs; Using child scopes; Creating a wasFast directive; Unit testing; Integration tests; Implementing the wasFast directive; Creating a fastRunner directive; Integration testing; Implementing the fastRunner directive; How to use isolate scopes; h.1fob9te; Relying on the rootScope function; Broadcasting to other directives; Communicating with media players. Integration testing for the bbBroadcastingPlayer directiveImplementing the bbBroadcastPlayer directive; Collaborating with controllers; Requiring the basics; Using controllers for the bbPlayer directive; Integration testing; Implementing the bbPlayer and bbPlayerContainer directives; Creating a fastClicker directive; Integration testing; Writing the fastClicker directive; Wiring up the stopwatch; Summary; _GoBack; Working with Live Data; Techniques that drive directives; The q library; How should data be watched for changes?; Doing a deep watch on rootScope.data. … (more)
- Publisher Details:
- Birmingham : Packt Publishing
- Publication Date:
- 2014
- Extent:
- 1 online resource (211 pages)
- Subjects:
- 006
COMPUTERS -- Web -- Web Services & APIs
Web site development
JavaScript (Computer program language)
Web site development
Application software -- Development
COMPUTERS -- General
Web site development
COMPUTERS -- Programming Languages -- JavaScript
Electronic books - Languages:
- English
- ISBNs:
- 9781783981595
1783981598 - Related ISBNs:
- 178398158X
9781783981588 - Notes:
- Note: Print version record.
- Access Rights:
- Legal Deposit; Only available on premises controlled by the deposit library and to one user at any one time; The Legal Deposit Libraries (Non-Print Works) Regulations (UK).
- Access Usage:
- Restricted: Printing from this resource is governed by The Legal Deposit Libraries (Non-Print Works) Regulations (UK) and UK copyright law currently in force.
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD.DS.87726
- Ingest File:
- 01_029.xml