Javascript 如何使用express或ui router在AngularJS中单击渲染视图

Javascript 如何使用express或ui router在AngularJS中单击渲染视图,javascript,angularjs,router,Javascript,Angularjs,Router,我有这个树状视图,我想做的是当用户单击一个项目时,页面重定向到项目详细信息 我怎么能做到?如何将绑定传递到页面? 我需要使用角度ui路由器吗?或者我可以在express上做吗 hotel.module.js (function (){ 'use strict'; angular .module('hotelsResult', []); })(); (function (){ 'use strict'; angular .module('

我有这个树状视图,我想做的是当用户单击一个项目时,页面重定向到项目详细信息

我怎么能做到?如何将绑定传递到页面? 我需要使用角度ui路由器吗?或者我可以在
express
上做吗

hotel.module.js

(function (){

  'use strict';

    angular
      .module('hotelsResult', []);

})();
(function (){

  'use strict';


  angular
      .module('hotelsResult')
      .component('itemList', {
        controller: itemListController,
        bindings: {
            hotels: '<',
            filters: '<'
        },
        templateUrl: "hotel-result/item-list/item-list.html"
      });

      function itemListController (){
        let self = this;
        let slicehotel = [];
        this.loadMore = function () {
          debugger;
          self.hotels = this.hotels;
        }
      }
})();
(function (){
  'use strict';

  angular
    .module('hotelsResult')
    .component('item', {
      controller:HotelItemController,
      bindings: {
          item: '<'
      },
      templateUrl: "hotel-result/item-list/item/item-component.html"
    });

    function HotelItemController(){


    }

})();
项目列表.component.js

(function (){

  'use strict';

    angular
      .module('hotelsResult', []);

})();
(function (){

  'use strict';


  angular
      .module('hotelsResult')
      .component('itemList', {
        controller: itemListController,
        bindings: {
            hotels: '<',
            filters: '<'
        },
        templateUrl: "hotel-result/item-list/item-list.html"
      });

      function itemListController (){
        let self = this;
        let slicehotel = [];
        this.loadMore = function () {
          debugger;
          self.hotels = this.hotels;
        }
      }
})();
(function (){
  'use strict';

  angular
    .module('hotelsResult')
    .component('item', {
      controller:HotelItemController,
      bindings: {
          item: '<'
      },
      templateUrl: "hotel-result/item-list/item/item-component.html"
    });

    function HotelItemController(){


    }

})();
(函数(){
"严格使用",;
有棱角的
.module('hotelsResult')
.component('itemList'{
控制器:itemListController,
绑定:{

hotels:“欢迎来到StackOverflow!为了让我们更好地帮助您,请更新您的问题,使其在一个文件中显示所有相关代码。MCVE的一部分是列出代码本身,而不是包含代码的图像——人们不会希望手动键入您的代码!”让我们知道您迄今为止为解决问题所做的努力也会很有帮助。有关更多信息,请参阅有关以下内容的帮助文章:)欢迎使用StackOverflow!为了让我们更好地帮助您,请更新您的问题,使其在中显示所有相关的代码。MCVE的一部分是列出代码本身,而不是包含代码的图像—人们不会希望手动键入您的代码!;)让我们知道您迄今为止尝试了什么也会很有帮助解决您的问题。有关更多信息,请参阅有关以下内容的帮助文章:)