Skip to main content
clarity
Source Link
georgeawg
  • 49k
  • 13
  • 77
  • 98

I am a beginnner in angularjs, and I want to make an if statement to the following code. Pseudocode:

if url.page exists then show this

 {{url.page | decodeURIComponent}}

else show 

{{url.path | decodeURIComponent}}

How can I achieve this?

This is my source code:

<a href="{{vm.company_website}}{{url.path}}"
   ng-if="url.path.indexOf('http') != 0"
                                   target="_blank"
                                   data-placement="bottom" data-toggle="tooltip" class="tip" 
   data-original-title="{{url.path}}" style="color:rgb(98, 98, 98);">;"
                                 >
   {{url.page | decodeURIComponent}}
  </a>

I am a beginnner in angularjs, and I want to make an if statement to the following code. Pseudocode:

if url.page exists then show this

 {{url.page | decodeURIComponent}}

else show 

{{url.path | decodeURIComponent}}

How can I achieve this?

This is my source code:

<a href="{{vm.company_website}}{{url.path}}" ng-if="url.path.indexOf('http') != 0"
                                   target="_blank"
                                   data-placement="bottom" data-toggle="tooltip" class="tip" data-original-title="{{url.path}}" style="color:rgb(98, 98, 98);">
                                    {{url.page | decodeURIComponent}}
  </a>

I am a beginnner in angularjs, and I want to make an if statement to the following code. Pseudocode:

if url.page exists then show this

 {{url.page | decodeURIComponent}}

else show 

{{url.path | decodeURIComponent}}

How can I achieve this?

This is my source code:

<a href="{{vm.company_website}}{{url.path}}"
   ng-if="url.path.indexOf('http') != 0"
   target="_blank"
   data-placement="bottom" data-toggle="tooltip" class="tip" 
   data-original-title="{{url.path}}" style="color:rgb(98, 98, 98);"
>
   {{url.page | decodeURIComponent}}
</a>
added 2 characters in body; edited title
Source Link
Igor
  • 62.4k
  • 10
  • 111
  • 181

How to create a simple if then else in angularangularjs?

I am a beginnner in angularangularjs, and I want to make an if statement to the following code. Pseudocode:

if url.page exists then show this

 {{url.page | decodeURIComponent}}

else show 

{{url.path | decodeURIComponent}}

How can I achieve this?

This is my source code:

<a href="{{vm.company_website}}{{url.path}}" ng-if="url.path.indexOf('http') != 0"
                                   target="_blank"
                                   data-placement="bottom" data-toggle="tooltip" class="tip" data-original-title="{{url.path}}" style="color:rgb(98, 98, 98);">
                                    {{url.page | decodeURIComponent}}
  </a>

How to create a simple if then else in angular?

I am a beginnner in angular, and I want to make an if statement to the following code. Pseudocode:

if url.page exists then show this

 {{url.page | decodeURIComponent}}

else show 

{{url.path | decodeURIComponent}}

How can I achieve this?

This is my source code:

<a href="{{vm.company_website}}{{url.path}}" ng-if="url.path.indexOf('http') != 0"
                                   target="_blank"
                                   data-placement="bottom" data-toggle="tooltip" class="tip" data-original-title="{{url.path}}" style="color:rgb(98, 98, 98);">
                                    {{url.page | decodeURIComponent}}
  </a>

How to create a simple if then else in angularjs?

I am a beginnner in angularjs, and I want to make an if statement to the following code. Pseudocode:

if url.page exists then show this

 {{url.page | decodeURIComponent}}

else show 

{{url.path | decodeURIComponent}}

How can I achieve this?

This is my source code:

<a href="{{vm.company_website}}{{url.path}}" ng-if="url.path.indexOf('http') != 0"
                                   target="_blank"
                                   data-placement="bottom" data-toggle="tooltip" class="tip" data-original-title="{{url.path}}" style="color:rgb(98, 98, 98);">
                                    {{url.page | decodeURIComponent}}
  </a>
edited tags
Link
R. Richards
  • 25.2k
  • 10
  • 67
  • 65
Source Link
EnexoOnoma
  • 8.9k
  • 20
  • 98
  • 187
Loading