Given the following markup:
In our controller we can have the statement:
My Technical Notes
The following is a snippet demonstration the Angular `$q` service use to create a "Deferred", which, in turn, is used to create a "promise" by calling its `promise` property:
Note that `$http.get` already returns a promise object, therefore you would not do this, but it is good for demonstration purposes.