File tree 3 files changed +29
-2
lines changed
3 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 19
19
$routeProvider
20
20
. when ( "/" , {
21
21
template : `
22
- <h1>Index</h1>
23
- <a href="/foo">Foo Page</a>
22
+ <h1>MEAN Squad Library</h1>
23
+ <p>Welcome to <em>MEAN Squad Library</em>, a library web application built with the MEAN Stack.
24
+ <records-counts><records-counts>
24
25
`
25
26
} )
26
27
}
Original file line number Diff line number Diff line change
1
+ < h1 > Library Records</ h1 >
2
+
3
+ < p > The library has the following record counts:</ p >
4
+
5
+ < ul >
6
+ < li > < strong > Books:</ strong > {{count}}</ li >
7
+ </ ul >
Original file line number Diff line number Diff line change
1
+ ( function ( ) {
2
+
3
+ angular . module ( 'app' ) . directive ( 'recordsCounts' , Directive ) ;
4
+
5
+ function Directive ( ) {
6
+ return {
7
+ restrict : 'E' ,
8
+ controller : Controller ,
9
+ templateUrl : '/records/records-counts.html' ,
10
+ }
11
+ }
12
+
13
+ Controller . $inject = [ '$scope' ] ;
14
+
15
+ function Controller ( $scope ) {
16
+ $scope . count = 11 ;
17
+ }
18
+
19
+ } ) ( ) ;
You can’t perform that action at this time.
0 commit comments