Hi,

The code in "View source" (right click the page and click "View Page 
Source" in chrome) shows the page served from the server without javascript 
parsing. @Ouiouane you should be able to see the content of "ng-if", unless 
the code is served by an external template. A working example will be 
useful (eg. http://plnkr.co/). 

Regards,

Vaibhav Gupta

On Monday, 9 November 2015 10:26:18 UTC+5:30, Sander Elias wrote:
>
> Hi Ouiouane,
>
> Welcome to angular :)
>
> If you use 'view sourcecode` you are looking at  a 'snapshot' of your page 
> as it is rendered in your browser. Most browsers do a full load, and a 
> first pass off all JS before taking that snapshot.
> ngIf takes out parts of the DOM when the condition is not truthy. That is 
> the reason that part does not show up in your 'view  pagesource`.
>
> Use the firefox developers tools, and use 'inspect-element' from the 
> right-click menu to get to the needed parts.
>
> Does that help you a bit?
> With kind regards
> Sander
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to