Check out example codes for "i need show the message for when we are clicking routing page in anularjs". It will help you in understanding the concepts better.

Code Example 1

.component('app', {
  template:
    '<nav>\n' +
    '  <a>Crisis Center</a>\n' +
    '  <a ng-link="[\'Heroes\']">Heroes</a>\n' +
    '</nav>\n' +
    '<ng-outlet></ng-outlet>\n',
  $routeConfig: [
    {path: '/heroes/...', name: 'Heroes', component: 'heroes'},
  ]
});

Learn ReactJs, React Native from akashmittal.com