summaryrefslogtreecommitdiff
path: root/recipeBuddy/src/app/main-page/main-page.component.ts
diff options
context:
space:
mode:
authorJacob <gatelyjm@clarkson.edu>2019-12-07 02:21:10 -0500
committerTucker Evans <tuckerevans24@gmail.com>2019-12-07 15:07:23 -0500
commita64074c892b7567ea822454e54aa4d8501a89194 (patch)
tree16ebcd5e9ce4474e85640a0ddfb879782e9cea53 /recipeBuddy/src/app/main-page/main-page.component.ts
parent7eb0712eff78c0fcde17e644e9a8863803b5472b (diff)
import { Component } from '@angular/core';chrisundercoffer
@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
Diffstat (limited to 'recipeBuddy/src/app/main-page/main-page.component.ts')
-rw-r--r--recipeBuddy/src/app/main-page/main-page.component.ts23
1 files changed, 14 insertions, 9 deletions
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
}
-
}