Having issue while routing
common.js
when('/showmessage/:groupkey/:groupmessage', {
templateUrl: 'templates/groups/showmessage.html',
controller: 'GroupsController'
}).
when('/showmessage/:groupkey/:channelmessage', {
templateUrl: 'templates/channels/showmessage.html',
controller: 'ChannelsController'
}).
index.html
<md-list-item class="md-3-line" ng-repeat="usergroup in usergroups">
<a ng-href="#/showmessage/{{usergroupkey}}/{{'groupmessage'}}">
<img ng-src="images/abc.png" class="md-avatar">
</a>
<a ng-href="#/showmessage/{{usergroupkey}}/{{'channelmessage'}}">
<img ng-src="images/abc.png" class="md-avatar">
</a>
When I click on group(1st link) it outputs grouplist page. But, when I click on channel(2nd link) it outputs grouplist page. Issue is when I am using different controllers, urls then why it is displaying same list page.
showgroupmessageandshowchannelmessage