Sean Condon | 87b7850 | 2018-09-17 20:53:24 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ~ Copyright 2018-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 | <div style="text-align:center"> |
| 17 | <onos-icon iconId="nav_apps" iconSize="200" toolTip="Test app"></onos-icon> |
| 18 | <h1> |
| 19 | Welcome to {{ title }}! |
| 20 | </h1> |
| 21 | </div> |
| 22 | <h2>Test App - Do not use or extend</h2> |
| 23 | <p>This app is just a wrapper around the FM GUI2 Library and is |
| 24 | necessary only to provide a base for that library. |
| 25 | It has a use in validating that the library can be loaded. |
| 26 | |
| 27 | The library is linked in here by the addition of the paths statement in |
| 28 | tsconfig.json. This is fine for accessing a local library, but for another |
| 29 | project it should be added in through package.json, using the 'file' locator. |
| 30 | Then run "npm install" in that target project and the tar will be expanded in |
| 31 | to it's node_modules folder. |
| 32 | |
| 33 | A good article on the creation and use of libraries in Angular 6 is given in<br /> |
| 34 | <a href="https://blog.angularindepth.com/creating-a-library-in-angular-6-87799552e7e5">The Angular Library Series - Creating a Library with the Angular CLI</a><br /> |
| 35 | and <br /> |
| 36 | <a href="https://blog.angularindepth.com/creating-a-library-in-angular-6-part-2-6e2bc1e14121">The Angular Library Series - Building and Packaging</a><br /> |
| 37 | |
| 38 | This "app" component is not built by Bazel - it's only the library that is built |
| 39 | by bazel which in turn calls "ng build --prod fm-gui2-lib" and then "npm pack" |
| 40 | resulting in a tar file that can be used as an NPM package anywhere. |
| 41 | <br /> |
| 42 | Note: Please remember that in Angular 6 rebuilding of libraries is not automatic. |
| 43 | If you change anything in the library, you will have to build it again before |
| 44 | it is picked up in this app. |
| 45 | </p> |
| 46 | <onos-alarmtable></onos-alarmtable> |
| 47 | |