Hacker News made with Angular 2.
I created this to see what it's like to create an AngularJS 2.0 application. I've previously experimented creating a Hacker News clone with AngularJS 1 so this was fun to play with.
- Actually use Firebase's life updating and propogate those changes in the UI.
- Dynamically load templates to achieve. Desire is to be able to do this:
<div ng-include="'/components/hn-item/hn-item--' + (data.type || 'story') + '.html'" />
- Pre-warm the template cache for production builds.
- Create and register new pipes (filters) for components.
- User angular-router 2 when it's available.
- The angular2 equivalent for
- How to create same
propertieskeys and values. So that I can have:
- Implement recursive
<hn-items />so we can render comment trees.
npm install && bower install
The MIT License
Copyright (c) 2015 Harry Wolff http://hswolff.com/
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.