Skip to content

Web App to generate dynamic material components with the help of a JSON string. Angular Material is a User Interface (UI) component library .

Notifications You must be signed in to change notification settings

aliahmad8701/Angular.material

Repository files navigation

Generating dynamic material

drawing

Task

Angular 11 web application that meets the following requirements:

  • Material Design components are used.
  • Page should have an input field that can read a json string.
  • Page should generate Material controls (button/label/slider) dynamically based on the json string. Labels can show a text or actual value of a slider.
  • After entering a new json the generated controls should be updated

Instructions:

$ npm i -force
$ ng serve

urls:
1-localhost:4200/input (For input json string)
2-localhost:4200/material (Result)

Sample Json string:

[{"type":"Button", "x":50, "y":50,"width":80,"height":40,"text":"Button"},
{"type":"Label", "x":50, "y":100,"width":80,"height":40,"text":"Label"},
{"type":"Slider", "x":50, "y":150,"width":100,"height":20,"text":"Slider_1","value":20}]

drawing

Test:

[{"type":"Button", "x":50, "y":50,"width":80,"height":40,"text":"Button"},
{"type":"Label", "x":100, "y":100,"width":80,"height":40,"text":"Label"},
{"type":"Slider", "x":150, "y":150,"width":100,"height":20,"text":"Slider_1","value":50}]

drawing

About

Web App to generate dynamic material components with the help of a JSON string. Angular Material is a User Interface (UI) component library .

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published