Giter VIP home page Giter VIP logo

Comments (6)

Serginio06 avatar Serginio06 commented on September 14, 2024

Пунтк 1. В ТЗ на мой взгляд есть двузначность:

  • При нажатии на изображение выполняется переход по пути '/id', где id - id новости. На открывшейся странице отображается дата и текст новости.
  • Маршрутизацию нужно реализовать без перезагрузки страницы.
    Маршрутизация идет по новости с параметром /id без перезагрузки страницы - т.е. новость выводится в блоке ниже - вся страница не перерендеривается. В моем понимании я выполнил задачу в соответсвии с пунктом 2. Если реализовывать согласно пункта 1 т.е. "На открывшейся странице отображается дата и текст новости" то это будет новая страница где весь контент сайта нужно будет убрать - то есть перерендерить все страницу. Или я что-то не так понял?

from angular-ivanchenko.

Serginio06 avatar Serginio06 commented on September 14, 2024

Пункт 2. Так и есть - следующие 8 новостей выводятся с файла json с помощью Redux. Я просто картинки новостей не меняю так как их не было в json файле поэтому они статичны. Изменение можно проследить по датам новостей - они соответствуют датам новостей из файла.

from angular-ivanchenko.

DinamickaDevelopment avatar DinamickaDevelopment commented on September 14, 2024
  1. Мне так и не удалось открыть новость целиком при нажатии на нее, хотя нажатие срабатывает и путь меняется.

  2. Обычно, когда нажимаешь на кнопку "loadmore" догружается несколько новых блоков на страницу ниже тех, что уже показаны.

from angular-ivanchenko.

Serginio06 avatar Serginio06 commented on September 14, 2024
  1. http://prntscr.com/g06hnh - блок с полной новостью отображается под кнопкой Load More. Я просто ничего более оригинального не придумал как его отобразить. Если возможно дать более развернутое описание как оно должно отобразиться - я переделаю.

  2. Понял. Спасибо

from angular-ivanchenko.

DinamickaDevelopment avatar DinamickaDevelopment commented on September 14, 2024
  1. Я его не заметил, лучше вывести на отдельную страницу, можно добавить на ней кнопку back.

from angular-ivanchenko.

Serginio06 avatar Serginio06 commented on September 14, 2024

Исправил пункт 2 с Load More.

from angular-ivanchenko.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.