This project was developed to address the following issues:
- Simplify the process of using Stack Exchange API in a websites, for starter we simplify the process of displaying the most recent post associated with a tag.
- Make the Stack Exchange API work with other HTML tags, This Simplifies the process of development & of creating a solution (see how).
For example get the content of recent post on a specific tag can look like this:
<sogettopanswerers tag="stackoverflow"> ... the context here will be the data of the posts </sogettopanswerers>
But it gives even more, it enables to connect different tag to it (using the attribute and the scope parameters), and with little effort create a more complex solutions.
For example display the answers of the post (from the previous example), the code will look like:
<sogettopanswerers tag="stackoverflow"> <div ng-repeat="oPost in mostrecenttagposts.items track by $index"> <sogetanswers postid="oPost.question_id"> <div ng-repeat="oAnswer in answers.items track by $index"> ...scope will containe the answer scope. Can be used as: <h1>oAnswer.title</h1> </div> </sogetanswers> </div> </sogettopanswerers>
So this Solution, all it did is wrapped the Stack Exchange API with an HTML tag.
In this sample we play with it even more. Wrapped it with a carousel component Wrapped it with a popover component.