Sean Condon | a36f65c | 2019-05-20 08:21:41 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ~ Copyright ${year}-present Open Networking Foundation |
| 3 | ~ |
| 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | ~ you may not use this file except in compliance with the License. |
| 6 | ~ You may obtain a copy of the License at |
| 7 | ~ |
| 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | ~ |
| 10 | ~ Unless required by applicable law or agreed to in writing, software |
| 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | ~ See the License for the specific language governing permissions and |
| 14 | ~ limitations under the License. |
| 15 | --> |
| 16 | |
Sean Condon | 13f42b7 | 2019-05-31 16:17:52 +0100 | [diff] [blame^] | 17 | <div id="ov-${appNameAllLower}"> |
| 18 | <div class="button-panel"> |
| 19 | <div class="my-button" (click)="getData()">Fetch Data</div> |
| 20 | </div> |
| 21 | |
| 22 | <div class="data-panel"> |
| 23 | <table> |
| 24 | <tr> |
| 25 | <td> Number </td> |
| 26 | <td class="number"> {{socketData.number}} </td> |
| 27 | </tr> |
| 28 | <tr> |
| 29 | <td> Square </td> |
| 30 | <td class="number"> {{socketData.square}} </td> |
| 31 | </tr> |
| 32 | <tr> |
| 33 | <td> Cube </td> |
| 34 | <td class="number"> {{socketData.cube}} </td> |
| 35 | </tr> |
| 36 | </table> |
| 37 | <onos-icon [iconId]="'bird'" [iconSize]="40" [toolTip]="'ONOS bird icon'" [classes]="'enabled'"></onos-icon> |
| 38 | <p> |
| 39 | A message from our sponsors: |
| 40 | </p> |
| 41 | <p> |
| 42 | <span class="quote"> {{socketData.message}} </span> |
| 43 | </p> |
| 44 | <p>Request Number: {{requestNumber}}</p> |
| 45 | </div> |
| 46 | </div> |
| 47 | <!-- Create an instance of a component passing it lteral value for colour and bind to the socketData.number--> |
| 48 | <${artifactId}-app-welcome [message]="socketData.number" [colour]="'magenta'" (welcomeEventEmitter)="childClicked($event)"></${artifactId}-app-welcome> |
| 49 | <${artifactId}-app-welcome [message]="socketData.square" [colour]="'aqua'" (welcomeEventEmitter)="childClicked($event)"></${artifactId}-app-welcome> |
| 50 | <${artifactId}-app-welcome [message]="socketData.cube" [colour]="'orange'" (welcomeEventEmitter)="childClicked($event)"></${artifactId}-app-welcome> |
| 51 | |
| 52 | |
| 53 | <p>Click one of the circles: </p> |
| 54 | <p [ngStyle]="{'background-color': childSelected }">Child selected: {{childSelected}}</p> |