├── Chapter_01
├── README.md
├── pubspec.yaml
├── web
│ ├── main.dart
│ └── index.html
└── pubspec.lock
├── Chapter_02
├── web
│ ├── style.css
│ ├── main.dart
│ └── index.html
├── README.md
├── pubspec.yaml
├── test
│ ├── karma.conf.js
│ └── main_test.dart
├── lib
│ └── component
│ │ ├── recipe_book.html
│ │ └── recipe_book.dart
└── pubspec.lock
├── Chapter_06
├── lib
│ ├── component
│ │ ├── view_recipe.css
│ │ ├── rating.css
│ │ ├── rating.html
│ │ ├── search_recipe.html
│ │ ├── view_recipe.dart
│ │ ├── search_recipe.dart
│ │ ├── view_recipe.html
│ │ ├── recipe_book.html
│ │ ├── rating.dart
│ │ └── recipe_book.dart
│ ├── formatter
│ │ └── category_filter.dart
│ ├── service
│ │ ├── recipe.dart
│ │ └── query.dart
│ ├── routing
│ │ └── recipe_book_router.dart
│ └── tooltip
│ │ └── tooltip.dart
├── README.md
├── web
│ ├── view
│ │ ├── viewRecipe.html
│ │ ├── addRecipe.html
│ │ └── editRecipe.html
│ ├── fonzie1.jpg
│ ├── fonzie2.jpg
│ ├── categories.json
│ ├── style.css
│ ├── index.html
│ ├── main.dart
│ └── recipes.json
├── pubspec.yaml
├── test
│ ├── karma.conf.js
│ └── main_test.dart
├── bin
│ └── server_simple_get_and_put.dart
└── pubspec.lock
├── .gitignore
├── img
├── ch01-1.png
├── ch01-2.png
├── ch02-1.png
└── ch02-2.png
├── Chapter_04
├── README.md
├── web
│ ├── fonzie1.jpg
│ ├── fonzie2.jpg
│ ├── style.css
│ ├── index.html
│ └── main.dart
├── lib
│ ├── component
│ │ ├── rating.css
│ │ ├── rating.html
│ │ ├── recipe_book.html
│ │ ├── rating.dart
│ │ └── recipe_book.dart
│ └── tooltip
│ │ └── tooltip.dart
├── pubspec.yaml
├── test
│ ├── karma.conf.js
│ └── main_test.dart
└── pubspec.lock
├── Chapter_03
├── README.md
├── web
│ ├── style.css
│ ├── main.dart
│ └── index.html
├── lib
│ └── component
│ │ ├── rating.css
│ │ ├── rating.html
│ │ ├── recipe_book.html
│ │ ├── recipe_book.dart
│ │ └── rating.dart
├── pubspec.yaml
├── test
│ ├── karma.conf.js
│ └── main_test.dart
└── pubspec.lock
├── Chapter_05
├── README.md
├── web
│ ├── fonzie1.jpg
│ ├── fonzie2.jpg
│ ├── categories.json
│ ├── style.css
│ ├── index.html
│ ├── main.dart
│ └── recipes.json
├── lib
│ ├── component
│ │ ├── rating.css
│ │ ├── rating.html
│ │ ├── recipe_book.html
│ │ ├── rating.dart
│ │ └── recipe_book.dart
│ ├── formatter
│ │ └── category_filter.dart
│ ├── recipe.dart
│ └── tooltip
│ │ └── tooltip.dart
├── pubspec.yaml
├── test
│ ├── karma.conf.js
│ └── main_test.dart
└── pubspec.lock
├── README.md
├── package.json
└── LICENSE
/Chapter_01/README.md:
--------------------------------------------------------------------------------
1 | "Hello World" AngularDart application
2 |
--------------------------------------------------------------------------------
/Chapter_02/web/style.css:
--------------------------------------------------------------------------------
1 | .pointer {
2 | cursor: pointer;
3 | }
--------------------------------------------------------------------------------
/Chapter_06/lib/component/view_recipe.css:
--------------------------------------------------------------------------------
1 | ul {
2 | list-style-type: none;
3 | }
4 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | packages
3 | .project
4 | .idea
5 | node_modules
6 | build
7 | .pub
8 |
--------------------------------------------------------------------------------
/img/ch01-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-archive/angular.dart.tutorial/master/img/ch01-1.png
--------------------------------------------------------------------------------
/img/ch01-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-archive/angular.dart.tutorial/master/img/ch01-2.png
--------------------------------------------------------------------------------
/img/ch02-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-archive/angular.dart.tutorial/master/img/ch02-1.png
--------------------------------------------------------------------------------
/img/ch02-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-archive/angular.dart.tutorial/master/img/ch02-2.png
--------------------------------------------------------------------------------
/Chapter_04/README.md:
--------------------------------------------------------------------------------
1 | Recipe Book AngularDart application
2 | Illustrates the use of an Angular directive
3 |
--------------------------------------------------------------------------------
/Chapter_03/README.md:
--------------------------------------------------------------------------------
1 | Recipe Book AngularDart application
2 | Illustrates the use of an Angular components
3 |
--------------------------------------------------------------------------------
/Chapter_05/README.md:
--------------------------------------------------------------------------------
1 | Recipe Book AngularDart application
2 | Illustrates the use of formatters and services
3 |
--------------------------------------------------------------------------------
/Chapter_06/README.md:
--------------------------------------------------------------------------------
1 | Recipe Book AngularDart application
2 | Illustrates the use of routing to create views
3 |
--------------------------------------------------------------------------------
/Chapter_06/web/view/viewRecipe.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Chapter_02/README.md:
--------------------------------------------------------------------------------
1 | Recipe Book AngularDart application
2 | Illustrates how to create a basic Angular component
3 |
--------------------------------------------------------------------------------
/Chapter_03/web/style.css:
--------------------------------------------------------------------------------
1 | .pointer {
2 | cursor: pointer;
3 | }
4 |
5 | .extra-space {
6 | padding-left: 10px;
7 | }
8 |
--------------------------------------------------------------------------------
/Chapter_04/web/fonzie1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-archive/angular.dart.tutorial/master/Chapter_04/web/fonzie1.jpg
--------------------------------------------------------------------------------
/Chapter_04/web/fonzie2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-archive/angular.dart.tutorial/master/Chapter_04/web/fonzie2.jpg
--------------------------------------------------------------------------------
/Chapter_04/web/style.css:
--------------------------------------------------------------------------------
1 | .pointer {
2 | cursor: pointer;
3 | }
4 |
5 | .extra-space {
6 | padding-left: 10px;
7 | }
8 |
--------------------------------------------------------------------------------
/Chapter_05/web/fonzie1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-archive/angular.dart.tutorial/master/Chapter_05/web/fonzie1.jpg
--------------------------------------------------------------------------------
/Chapter_05/web/fonzie2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-archive/angular.dart.tutorial/master/Chapter_05/web/fonzie2.jpg
--------------------------------------------------------------------------------
/Chapter_06/web/fonzie1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-archive/angular.dart.tutorial/master/Chapter_06/web/fonzie1.jpg
--------------------------------------------------------------------------------
/Chapter_06/web/fonzie2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-archive/angular.dart.tutorial/master/Chapter_06/web/fonzie2.jpg
--------------------------------------------------------------------------------
/Chapter_06/web/view/addRecipe.html:
--------------------------------------------------------------------------------
1 |
2 |
Add recipe
3 | Now it's your turn. Write some code to add a new recipe.
4 |
5 |
--------------------------------------------------------------------------------
/Chapter_06/web/view/editRecipe.html:
--------------------------------------------------------------------------------
1 |
2 |
Edit recipe
3 | Now it's your turn. Write some code to edit the recipe.
4 |
5 |
--------------------------------------------------------------------------------
/Chapter_05/web/categories.json:
--------------------------------------------------------------------------------
1 | [
2 | "Appetizers",
3 | "Salads",
4 | "Soups",
5 | "Main Dishes",
6 | "Side Dishes",
7 | "Desserts"
8 | ]
9 |
--------------------------------------------------------------------------------
/Chapter_06/web/categories.json:
--------------------------------------------------------------------------------
1 | [
2 | "Appetizers",
3 | "Salads",
4 | "Soups",
5 | "Main Dishes",
6 | "Side Dishes",
7 | "Desserts"
8 | ]
9 |
--------------------------------------------------------------------------------
/Chapter_01/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: tutorial
2 | version: 1.0.0
3 | dependencies:
4 | angular: "1.1.0"
5 | web_components: "0.10.1"
6 | browser: ">=0.10.0+2 <0.11.0"
7 | transformers:
8 | - angular
9 |
--------------------------------------------------------------------------------
/Chapter_03/lib/component/rating.css:
--------------------------------------------------------------------------------
1 | .star-off {
2 | color: #6E6E6E;
3 | }
4 | .star-on {
5 | color: #FACC2E;
6 | }
7 | .stars {
8 | letter-spacing: -2px;
9 | cursor: pointer;
10 | }
11 |
--------------------------------------------------------------------------------
/Chapter_04/lib/component/rating.css:
--------------------------------------------------------------------------------
1 | .star-off {
2 | color: #6E6E6E;
3 | }
4 | .star-on {
5 | color: #FACC2E;
6 | }
7 | .stars {
8 | letter-spacing: -2px;
9 | cursor: pointer;
10 | }
11 |
--------------------------------------------------------------------------------
/Chapter_05/lib/component/rating.css:
--------------------------------------------------------------------------------
1 | .star-off {
2 | color: #6E6E6E;
3 | }
4 | .star-on {
5 | color: #FACC2E;
6 | }
7 | .stars {
8 | letter-spacing: -2px;
9 | cursor: pointer;
10 | }
11 |
--------------------------------------------------------------------------------
/Chapter_06/lib/component/rating.css:
--------------------------------------------------------------------------------
1 | .star-off {
2 | color: #6E6E6E;
3 | }
4 | .star-on {
5 | color: #FACC2E;
6 | }
7 | .stars {
8 | letter-spacing: -2px;
9 | cursor: pointer;
10 | }
11 |
--------------------------------------------------------------------------------
/Chapter_03/lib/component/rating.html:
--------------------------------------------------------------------------------
1 |
5 | {{starChar(star)}}
6 |
7 |
--------------------------------------------------------------------------------
/Chapter_04/lib/component/rating.html:
--------------------------------------------------------------------------------
1 |
5 | {{starChar(star)}}
6 |
7 |
--------------------------------------------------------------------------------
/Chapter_05/lib/component/rating.html:
--------------------------------------------------------------------------------
1 |
5 | {{starChar(star)}}
6 |
7 |
--------------------------------------------------------------------------------
/Chapter_06/lib/component/rating.html:
--------------------------------------------------------------------------------
1 |
5 | {{starChar(star)}}
6 |
7 |
--------------------------------------------------------------------------------
/Chapter_05/web/style.css:
--------------------------------------------------------------------------------
1 | .pointer {
2 | cursor: pointer;
3 | }
4 |
5 | .extra-space {
6 | padding-left: 10px;
7 | }
8 |
9 | [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
10 | display: none !important;
11 | }
12 |
13 | ul {
14 | list-style-type: none;
15 | }
--------------------------------------------------------------------------------
/Chapter_06/web/style.css:
--------------------------------------------------------------------------------
1 | a {
2 | text-decoration: none;
3 | }
4 |
5 | .extra-space {
6 | padding-left: 10px;
7 | }
8 |
9 | [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
10 | display: none !important;
11 | }
12 |
13 | ul {
14 | list-style-type: none;
15 | }
16 |
--------------------------------------------------------------------------------
/Chapter_01/web/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:angular/application_factory.dart';
2 | import 'package:di/annotations.dart';
3 |
4 | @Injectable()
5 | class Greeter {
6 | String name;
7 | }
8 |
9 | void main() {
10 | applicationFactory()
11 | .rootContextType(Greeter)
12 | .run();
13 | }
14 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | This repo contains the examples from the archived [AngularDart 1 Tutorial][tut].
2 |
3 | For the latest AngularDart examples, check out the repos under
4 | [github.com/angular-examples](https://github.com/angular-examples).
5 |
6 | [tut]: https://web.archive.org/web/20160304145052/https://angulardart.org/tutorial/
7 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "angular.dart",
3 | "dependencies": {
4 | "karma": "^0.11.14",
5 | "karma-dart": "^0.2.6",
6 | "karma-chrome-launcher": "*",
7 | "karma-firefox-launcher": "*",
8 | "karma-junit-reporter": "*"
9 | },
10 | "devDependencies": {
11 | "karma-chrome-launcher": "^0.1.3"
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Chapter_02/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: tutorial
2 | version: 1.0.0
3 | dependencies:
4 | angular: "1.1.0"
5 | web_components: "0.10.1"
6 | browser: ">=0.10.0+2 <0.11.0"
7 | dev_dependencies:
8 | unittest: ">=0.11.0+5 <0.12.0"
9 | mock: ">=0.11.0+2 <0.12.0"
10 | transformers:
11 | - angular:
12 | html_files:
13 | - lib/component/recipe_book.html
14 |
15 |
--------------------------------------------------------------------------------
/Chapter_04/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: tutorial
2 | version: 1.0.0
3 | dependencies:
4 | angular: "1.1.0"
5 | web_components: "0.10.1"
6 | browser: ">=0.10.0+2 <0.11.0"
7 | dev_dependencies:
8 | unittest: ">=0.11.0+5 <0.12.0"
9 | mock: ">=0.11.0+2 <0.12.0"
10 | transformers:
11 | - angular:
12 | html_files:
13 | - lib/component/recipe_book.html
14 | - lib/component/rating.html
15 |
--------------------------------------------------------------------------------
/Chapter_05/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: tutorial
2 | version: 1.0.0
3 | dependencies:
4 | angular: "1.1.0"
5 | web_components: "0.10.1"
6 | browser: ">=0.10.0+2 <0.11.0"
7 | dev_dependencies:
8 | unittest: ">=0.11.0+5 <0.12.0"
9 | mock: ">=0.11.0+2 <0.12.0"
10 | transformers:
11 | - angular:
12 | html_files:
13 | - lib/component/recipe_book.html
14 | - lib/component/rating.html
15 |
--------------------------------------------------------------------------------
/Chapter_03/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: tutorial
2 | version: 1.0.0
3 | dependencies:
4 | angular: "1.1.0"
5 | web_components: "0.10.1"
6 | browser: ">=0.10.0+2 <0.11.0"
7 | dev_dependencies:
8 | unittest: ">=0.11.0+5 <0.12.0"
9 | mock: ">=0.11.0+2 <0.12.0"
10 | transformers:
11 | - angular:
12 | html_files:
13 | - lib/component/recipe_book.html
14 | - lib/component/rating.html
15 |
16 |
--------------------------------------------------------------------------------
/Chapter_02/web/main.dart:
--------------------------------------------------------------------------------
1 | library recipe_book;
2 |
3 | import 'package:angular/angular.dart';
4 | import 'package:angular/application_factory.dart';
5 | import 'package:tutorial/component/recipe_book.dart';
6 |
7 | class MyAppModule extends Module {
8 | MyAppModule() {
9 | bind(RecipeBookComponent);
10 | }
11 | }
12 |
13 | void main() {
14 | applicationFactory()
15 | .addModule(new MyAppModule())
16 | .run();
17 | }
18 |
--------------------------------------------------------------------------------
/Chapter_06/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: tutorial
2 | version: 1.0.0
3 | dependencies:
4 | angular: "1.1.0"
5 | web_components: "0.10.1"
6 | browser: any
7 | http_server: ">=0.9.3 <0.10.0"
8 | dev_dependencies:
9 | unittest: ">=0.11.0+5 <0.12.0"
10 | mock: ">=0.11.0+2 <0.12.0"
11 | transformers:
12 | - angular:
13 | html_files:
14 | - lib/component/recipe_book.html
15 | - lib/component/rating.html
16 | - lib/component/search_recipe.html
17 | - lib/component/view_recipe.html
18 |
--------------------------------------------------------------------------------
/Chapter_03/web/main.dart:
--------------------------------------------------------------------------------
1 | library recipe_book;
2 |
3 | import 'package:angular/angular.dart';
4 | import 'package:angular/application_factory.dart';
5 |
6 | import 'package:tutorial/component/rating.dart';
7 | import 'package:tutorial/component/recipe_book.dart';
8 |
9 | class MyAppModule extends Module {
10 | MyAppModule() {
11 | bind(RecipeBookComponent);
12 | bind(RatingComponent);
13 | }
14 | }
15 |
16 | void main() {
17 | applicationFactory()
18 | .addModule(new MyAppModule())
19 | .run();
20 | }
21 |
--------------------------------------------------------------------------------
/Chapter_01/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Chapter One - Hello, World!
5 |
6 |
7 |
8 |
9 | Hello {{name}}!
10 | Name:
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Chapter_05/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Chapter Five - A Simple Recipe Book
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |