Hello World!
Debug Scope: visible = {{visible}}
by Frederik Dietz version 1.0 Recipes with Angular.js Practical concepts and techniques for rapid web applicat...
Recipes with Angular.js Practical concepts and techniques for rapid web application developmentby Frederik Dietz version 1.0 Recipes with Angular.js Practical concepts and techniques for rapid web application development Frederik Dietz This book is for sale at http://leanpub.com/recipes-with-angular-js This version was published on 2014-01-12 This is a Leanpub book. Leanpub empowers authors and publishers with the Lean Publishing process. Lean Publishing is the act of publishing an in-progress ebook using lightweight tools and many iterations to get reader feedback, pivot until you have the right book and build traction once you do. ©2013 - 2014 Frederik Dietz Tweet This Book! Please help Frederik Dietz by spreading the word about this book on Twitter! The suggested hashtag for this book is #recipeswithangularjs. Find out what other people are saying about the book by clicking on this link to search for this hashtag on Twitter: https://twitter.com/search?q=#recipeswithangularjs Contents An Introduction to Angular.js . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Including the Angular.js Library Code in an HTML Page . . . . . . . . . . . . . . . . . . . 1 Binding a Text Input to an Expression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Responding to Click Events using Controllers . . . . . . . . . . . . . . . . . . . . . . . . . 3 Converting Expression Output with Filters . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Creating Custom HTML Elements with Directives . . . . . . . . . . . . . . . . . . . . . . 5 An Introduction to Angular.js Including the Angular.js Library Code in an HTML Page Problem You wish to use Angular.js on a web page. Solution In order to get your first Angular.js app up and running you need to include the Angular Javascript file via script tag and make use of the ng-app directive. 1 2 3 6 7 Hello World!
Debug Scope: visible = {{visible}}
8 This is your first angular expression: {{ 1 + 2 }}
9 10