blob: 27ae8de01a926d7c3a20b2beff29ff91e05ec527 [file] [log] [blame]
Sean Condon83fc39f2018-04-19 18:56:13 +01001/*
2 * Copyright 2015-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 */
16import { Component, OnInit } from '@angular/core';
17import { LogService } from '../../../log.service';
18import { NavService } from '../nav.service';
19import { trigger, state, style, animate, transition } from '@angular/animations';
20
21/**
22 * ONOS GUI -- Navigation Module
23 */
24@Component({
25 selector: 'onos-nav',
26 templateUrl: './nav.component.html',
27 styleUrls: ['./nav.theme.css', './nav.component.css'],
28 animations: [
29 trigger('navState', [
30 state('inactive', style({
31 visibility: 'hidden',
32 transform: 'translateX(-100%)'
33 })),
34 state('active', style({
35 visibility: 'visible',
36 transform: 'translateX(0%)'
37 })),
38 transition('inactive => active', animate('100ms ease-in')),
39 transition('active => inactive', animate('100ms ease-out'))
40 ])
41 ]
42})
43export class NavComponent implements OnInit {
44
45 constructor(
46 private log: LogService,
47 public ns: NavService
48 ) {
49 this.log.debug('NavComponent constructed');
50 }
51
52 ngOnInit() {
53 this.log.debug('NavComponent initialized');
54 }
55
56}