×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Nilesh Yadav
Added: Jun 12, 2017 9:46 AM
Views: 4
Tags: no tags
  1. .state('add',{
  2.         url:'/add/:a/:b',
  3.         templateUrl:'result.html',
  4.         controller:'addController',
  5.         data:{
  6.           multiplier:10
  7.         }
  8. })
  9.  
  10. app.controller('addController',['$scope','$state',
  11.         function($scope,$state) {
  12.             $state.current.data.mutliplier
  13.         }
  14. ])