|
62 | 62 | <li class="dropdown"> |
63 | 63 | <a href="#" class="dropdown-toggle" data-toggle="dropdown">Usage <b class="caret"></b></a> |
64 | 64 | <ul class="dropdown-menu"> |
65 | | - <li><a href="#">From AngularJS</a></li> |
| 65 | + <li><a href="#angularjs-example">From AngularJS</a></li> |
66 | 66 | <li><a href="#">From native JavaScript</a></li> |
67 | 67 | <li><a href="#">From jQuery</a></li> |
68 | 68 | </ul> |
|
75 | 75 |
|
76 | 76 | <div class="container"> |
77 | 77 | <section id="introduction"> |
78 | | - <h2>Introduction</h2> |
79 | | - <p>Directives in AngularJS is a powerful way of building reusable UI components. |
| 78 | + <h1>Introduction</h1> |
| 79 | + <p>Directives in <a target="_new" href="http://angularjs.org">AngularJS</a> is a powerful way of building reusable <em>UI components</em>. |
80 | 80 | This simple project will serve as a sample/reference implementation demonstrating its |
81 | | - flexibilities by making it usable across runtime libraries (AngularJS, plain simple JavaScript & jQuery)</p> |
| 81 | + flexibilities by making it usable across runtime (AngularJS, plain simple JavaScript & jQuery)</p> |
82 | 82 |
|
83 | 83 | </section> |
84 | | - |
85 | 84 | <section id="basic-example"> |
86 | 85 | <h3>Basic Example</h3> |
87 | 86 | <div class="bs-docs-example"> |
@@ -113,13 +112,34 @@ <h3>Formatted timer</h3> |
113 | 112 | </section> |
114 | 113 |
|
115 | 114 | <hr> |
| 115 | + <h2>Examples</h2> |
| 116 | + <section id="angularjs-example"> |
| 117 | + <h3>Using timer directive from Angular</h3> |
| 118 | + <ul class="nav nav-tabs" id="myTab"> |
| 119 | + <li class="active"><a data-toggle="tab" href="#angularjs-example-source">index.html</a></li> |
| 120 | + <li><a data-toggle="tab" href="#angularjs-example-demo">Demo</a></li> |
| 121 | + </ul> |
| 122 | + |
| 123 | + <div class="tab-content"> |
| 124 | + <div class="tab-pane active" id="angularjs-example-source"> |
| 125 | + <pre class="prettyprint linenums"> |
| 126 | + <code> |
| 127 | + <a data-toggle="modal" href="remote.html" data-target="#modal">click me</a> |
| 128 | + </code> |
| 129 | + </pre> |
| 130 | + </div> |
| 131 | + <div class="tab-pane" id="angularjs-example-demo"> |
| 132 | + <h1>Demo</h1> |
| 133 | + </div> |
| 134 | + </div> |
| 135 | + </section> |
| 136 | + |
116 | 137 |
|
117 | 138 | <footer> |
118 | 139 | <p>© Siddique Hameed 2013</p> |
119 | 140 | </footer> |
120 | 141 |
|
121 | 142 | </div> |
122 | | -</div> |
123 | 143 |
|
124 | 144 | <script src="docs/prettify.js"></script> |
125 | 145 | <script src="docs/application.js"></script> |
|
0 commit comments