Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. return view('estate.index', ["status" => $estate_status, "type" => $estate_types]);
  2.  
  3. <router-view
  4. :to="{
  5. name: 'EstateIndex',
  6. params: {
  7. status: status ,
  8. type: type,
  9. created_by : created_by ,
  10. deal : deal
  11. }
  12. }"
  13. ></router-view>
  14.  
  15. const router = new VueRouter({
  16. mode: 'history',
  17. routes: [
  18. {
  19. path: '/estate',
  20. name: "EstateIndex",
  21. component: EstateIndex,
  22. props:true
  23. },
  24.  
  25. export default {
  26.  
  27. props:[
  28. 'deal',
  29. 'type',
  30. ...
  31. ],
  32.  
  33. <table-component :status="{{ json_encode($status) }}"
  34. :type="{{ json_encode($type) }}"
  35. :created_by="{{ json_encode($created_by) }}"
  36. :deal="{{ json_encode($deal) }}"> </table-component>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement