Skip to content

📋 App to show a list of items, each with a clickable link to a detailed page. To be developed into an Android app.

License

Notifications You must be signed in to change notification settings

AndrewJBateman/ionic-angular-notes

Repository files navigation

⚡ Ionic Angular Notes

  • App to show recipes as a list and in a detailed view, using the Ionic framework.
  • Note: to open web links in a new window use: ctrl+click on link

GitHub repo size GitHub pull requests GitHub Repo stars GitHub last commit

📄 Table of contents

📚 General info

  • The Home page is a list of recipes. Click on one and it shows the detailed recipe page using the recipe id.
  • The back button routes the user back to the home screen.
  • The delete button deletes the recipe with an alert appearing
  • Capacitor installed so app can be run on android.

📷 Screenshots

Recipe List Recipe Detail Page

📶 Technologies

💾 Setup

  • Run npm i to install dependencies
  • To start the server on localhost://8100 type: 'ionic serve'
  • The Ionic DevApp was installed on an Android device from the Google Play app store.

💻 Code Examples

  • functions to search for info and retrieve more detailed info.
getAllRecipes() {
  return [...this.recipes];
}
// return a single recipe for an id
getRecipe(recipeId: string) {
  return {
    ...this.recipes.find(recipe => {
      return recipe.id === recipeId;
    })
  };
}

// delete a recipe using the filter function and recipe id
  deleteRecipe(recipeId: string) {
    this.recipes = this.recipes.filter(recipe => {
      return recipe.id !== recipeId;
    });
}

🆒 Features

📋 Status & To-do list

  • Status: Working.
  • To-do: change data in recipes.services.ts. Add functionality. run in Android simulator.

👏 Inspiration

📁 License

  • This project is licensed under the terms of the MIT license.

✉️ Contact