This project is a quick conceptual exercise in designing and building out a Component Library/Framework using AngularJS.
- Install dependencies using npm & bower:
npm install
bower install
- Run simple node server (server.js) and update port info if needed.
node server.js
- Open http://localhost:3000/ in browser.
The table component is the largest component in the library. It was designed to be dynamic, able to render both simple text elements and complex components. This is accomplished by splitting the necessary info needed for the table into 2 parts:
- The data to be rendered
- The data describing the the layout for the rendered table (a list of properties for each column that tells the component how to render the data from #1)
The component itself does the matching of these 2 parts and renders each row appropriately, according to the configuration passed in.
The contact tile (when finished) will be incorporated directly into the Table component mentioned above. This is a simple component that takes a contact's information and displays it next to a picture/icon specified by the user.
The dialog component contains a list of form elements needed to add a new contact to our database. When finished, it should incorporate several other components that will allow users' to add/edit/remove contacts.