From a64074c892b7567ea822454e54aa4d8501a89194 Mon Sep 17 00:00:00 2001 From: Jacob Date: Sat, 7 Dec 2019 02:21:10 -0500 Subject: import { Component } from '@angular/core'; @Component({ selector: 'my-app', templateUrl: './app.component.html', styleUrls: [ './app.component.css' ] }) export class AppComponent { name = 'Angular'; addPage() { //Code here to move to add page } submitSearch() { //Code here to submit search } shoppingCart() { //Code here to move to shopping cart } } Updated main page to include just the top navigation --- .../src/app/main-page/main-page.component.html | 106 ++++++++++++++++++++- .../src/app/main-page/main-page.component.ts | 23 +++-- 2 files changed, 116 insertions(+), 13 deletions(-) (limited to 'recipeBuddy/src/app') diff --git a/recipeBuddy/src/app/main-page/main-page.component.html b/recipeBuddy/src/app/main-page/main-page.component.html index 7a25409..9f2b69a 100644 --- a/recipeBuddy/src/app/main-page/main-page.component.html +++ b/recipeBuddy/src/app/main-page/main-page.component.html @@ -2,9 +2,107 @@ Recipe Buddy
-
+
+
+ +
+
-
+
+
+
+ +
+
-
\ No newline at end of file +
+ + + + + \ No newline at end of file diff --git a/recipeBuddy/src/app/main-page/main-page.component.ts b/recipeBuddy/src/app/main-page/main-page.component.ts index 7fadd1c..60e3acc 100644 --- a/recipeBuddy/src/app/main-page/main-page.component.ts +++ b/recipeBuddy/src/app/main-page/main-page.component.ts @@ -1,15 +1,20 @@ -import { Component, OnInit } from '@angular/core'; +import { Component } from '@angular/core'; @Component({ - selector: 'app-main-page', - templateUrl: './main-page.component.html', - styleUrls: ['./main-page.component.css'] + selector: 'my-app', + templateUrl: './app.component.html', + styleUrls: [ './app.component.css' ] }) -export class MainPageComponent implements OnInit { +export class AppComponent { + name = 'Angular'; - constructor() { } - - ngOnInit() { + addPage() { + //Code here to move to add page + } + submitSearch() { + //Code here to submit search + } + shoppingCart() { + //Code here to move to shopping cart } - } -- cgit v1.1