How to add a link to a button to go to another html file


#1

to add it to this button.


#2

here it is can u help me pls


#3

Anyone going to help me with this


#4

Please take a look at this example.

You’re still using hrefs, or using ng-hrefs or even ui-srefs.


#5

that doesnt work with my button code im using


#6

this is the code im using


#7

the code u gave me is not what im looking for


#8

You need to create your states

 .config(function($stateProvider, $urlRouterProvider) {

  $stateProvider
    .state('home', {
    url: "/home",
    templateUrl: "templates/home.html"
  })
    .state('detail', {
    url: "/detail",
    templateUrl: "templates/detail.html"
  });


  $urlRouterProvider.otherwise("/home");

})

And then link to them using a tags

  <a class="button icon icon-right ion-chevron-right" ui-sref="detail">Detail View</a>

#9

so how do i integrate it with this code


#10

That code will not work.
Please look at the example codepen I already posted.


#11

So why do you have it on your platforms website THEN SO!!!


#12