'Finding Angular variable content integrated in RoR app's haml file

Working on the Rails v6 app with Angular.js and haml, I can't find in which file variant variable is defined. Angular is integrated with coffee-script inside RoR app.

This is my price_breakdown.html.haml

.joyride-tip-guide.price_breakdown{ng: {class: "{ in: tt_isOpen, fade: tt_animation }", show: "tt_isOpen"}}
  %span.joyride-nub.top
  .background{ng: {click: "tt_isOpen = false"}}
  .joyride-content-wrapper
    %h6 {{ "js.shopfront.price_breakdown" | t }}
    %ul
      %li
        .right {{ ::variant.price | localizeCurrency }}
        %span{"ng-bind" => "::'item_cost' | t"}

I am new to Angular. I want to change the variant variable attributes that are being displayed. For instance: ::variant.price to ::variant.names. But, I neither know the exact attribute name nor if it exists yet.

How can I read variant variable attributes or what is inside the variable?

I tried variant.inspect, but it is not displaying anything...



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source