$stateParams converting value to string
问题 I am using UI-Router . Here's one of my state to which I am routing via ui-sref : .state("community", { url: "/community/:community_id", controller: "CommunityCtrl", templateUrl: "/static/templates/community.html" }) In one of my templates from where I go to 'community' state: <div ui-sref="community({community_id: community.community_id})"></div> Here's my community object: { name: 'Community name', community_id: 11 //int, not a string } As you can see the key 'community_id' contains an int