Last active
          March 22, 2018 00:55 
        
      - 
      
 - 
        
Save duwaljyoti/a19a01ce8808aad0742a81c9f5b5a6ec to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <template> | |
| <div> | |
| <!--loading component--> | |
| <loading :loading="loading"> | |
| </loading> | |
| <!--flash component--> | |
| <flash> | |
| </flash> | |
| <!--navbar component--> | |
| <nav-bar @note-route-changed="changeRoute('favourite')"> | |
| </nav-bar> | |
| <!--code for rendering notes and favourite notes--> | |
| <div id="notes-list"> | |
| </div> | |
| </div> | |
| </template> | |
| <script> | |
| export default{ | |
| ...mapState([ | |
| 'notes', | |
| 'favouriteNotes', | |
| ]), | |
| ...mapActions([ | |
| 'getAll', | |
| 'getFavourite', | |
| 'getUserFavouriteId', | |
| ]), | |
| } | |
| </script> | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment