Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit deb9cfc

Browse files
committed
making more normal dart packages and libraries
1 parent f35e6ec commit deb9cfc

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

Chapter_03/main.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
library recipe_book;
2+
13
import 'package:angular/angular.dart';
24
import 'package:di/di.dart';
3-
import 'rating_component.dart';
5+
6+
part 'rating_component.dart';
47

58
@NgDirective(
69
selector: '[recipe-book]',

Chapter_03/rating_component.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import 'package:angular/angular.dart';
1+
part of recipe_book;
22

33
/* Use the NgComponent annotation to indicate that this class is an
44
* Angular Component.

Chapter_04/main.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
library recipe_book;
2+
13
import 'package:angular/angular.dart';
4+
import 'dart:convert';
25
import 'package:perf_api/perf_api.dart';
36
import 'package:di/di.dart';
4-
import 'rating_component.dart';
5-
import 'recipe.dart';
7+
8+
part 'rating_component.dart';
9+
part 'recipe.dart';
610

711

812
@NgFilter(name: 'categoryfilter')

Chapter_04/rating_component.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import 'package:angular/angular.dart';
1+
part of recipe_book;
22

33
/* Use the NgComponent annotation to indicate that this class is an
44
* Angular Component.

Chapter_04/recipe.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
library recipe;
2-
3-
import 'dart:convert' show JSON;
1+
part of recipe_book;
42

53
class Recipe {
64
String name;

0 commit comments

Comments
 (0)