I want my Angular 6 app to work with Google Jobs but cannot format correctly












6














I want my html job posting to appear in google jobs.



This is the schema: https://schema.org/JobPosting



But the SPA takes too long to get the app loading and jobs showing so the crawlers not picking up the jobs.



This is my code example:



 <meta itemprop="address" content="{{ job.address.addressLine1 }} {{ job.address.postCode }}">
<meta itemprop="addressLocality" content="{{ job.address.country }}">

<p class="flex justify-between">
<span itemprop="industry"><strong>{{ job.sector }}</strong></span>
<span *ngIf="job.datePosted" itemprop="datePosted"><strong>{{ job.datePosted }}</strong></span>
</p>

<h3>
<span itemprop="title">{{ job.name }}</span>
<span itemprop="baseSalary">{{ job.pay.currency }}{{ job.pay.value }}</span>
</h3>

<p itemprop="description" [innerHtml]="job.description"></p>


As you can see I've added the "itemprop".



Tech stack: Angular Version 6, Webpack, Angular Cli 6



When I use this tool from google jobs it doesnt show the jobs: https://search.google.com/structured-data/testing-tool/u/0/










share|improve this question
























  • You need to use something like Angular Universal to render the page for you.
    – codebreach
    Dec 14 '18 at 13:15
















6














I want my html job posting to appear in google jobs.



This is the schema: https://schema.org/JobPosting



But the SPA takes too long to get the app loading and jobs showing so the crawlers not picking up the jobs.



This is my code example:



 <meta itemprop="address" content="{{ job.address.addressLine1 }} {{ job.address.postCode }}">
<meta itemprop="addressLocality" content="{{ job.address.country }}">

<p class="flex justify-between">
<span itemprop="industry"><strong>{{ job.sector }}</strong></span>
<span *ngIf="job.datePosted" itemprop="datePosted"><strong>{{ job.datePosted }}</strong></span>
</p>

<h3>
<span itemprop="title">{{ job.name }}</span>
<span itemprop="baseSalary">{{ job.pay.currency }}{{ job.pay.value }}</span>
</h3>

<p itemprop="description" [innerHtml]="job.description"></p>


As you can see I've added the "itemprop".



Tech stack: Angular Version 6, Webpack, Angular Cli 6



When I use this tool from google jobs it doesnt show the jobs: https://search.google.com/structured-data/testing-tool/u/0/










share|improve this question
























  • You need to use something like Angular Universal to render the page for you.
    – codebreach
    Dec 14 '18 at 13:15














6












6








6


1





I want my html job posting to appear in google jobs.



This is the schema: https://schema.org/JobPosting



But the SPA takes too long to get the app loading and jobs showing so the crawlers not picking up the jobs.



This is my code example:



 <meta itemprop="address" content="{{ job.address.addressLine1 }} {{ job.address.postCode }}">
<meta itemprop="addressLocality" content="{{ job.address.country }}">

<p class="flex justify-between">
<span itemprop="industry"><strong>{{ job.sector }}</strong></span>
<span *ngIf="job.datePosted" itemprop="datePosted"><strong>{{ job.datePosted }}</strong></span>
</p>

<h3>
<span itemprop="title">{{ job.name }}</span>
<span itemprop="baseSalary">{{ job.pay.currency }}{{ job.pay.value }}</span>
</h3>

<p itemprop="description" [innerHtml]="job.description"></p>


As you can see I've added the "itemprop".



Tech stack: Angular Version 6, Webpack, Angular Cli 6



When I use this tool from google jobs it doesnt show the jobs: https://search.google.com/structured-data/testing-tool/u/0/










share|improve this question















I want my html job posting to appear in google jobs.



This is the schema: https://schema.org/JobPosting



But the SPA takes too long to get the app loading and jobs showing so the crawlers not picking up the jobs.



This is my code example:



 <meta itemprop="address" content="{{ job.address.addressLine1 }} {{ job.address.postCode }}">
<meta itemprop="addressLocality" content="{{ job.address.country }}">

<p class="flex justify-between">
<span itemprop="industry"><strong>{{ job.sector }}</strong></span>
<span *ngIf="job.datePosted" itemprop="datePosted"><strong>{{ job.datePosted }}</strong></span>
</p>

<h3>
<span itemprop="title">{{ job.name }}</span>
<span itemprop="baseSalary">{{ job.pay.currency }}{{ job.pay.value }}</span>
</h3>

<p itemprop="description" [innerHtml]="job.description"></p>


As you can see I've added the "itemprop".



Tech stack: Angular Version 6, Webpack, Angular Cli 6



When I use this tool from google jobs it doesnt show the jobs: https://search.google.com/structured-data/testing-tool/u/0/







angular webpack angular6






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 13 '18 at 8:15









Thomas Broyer

62.1k678151




62.1k678151










asked Nov 19 '18 at 15:18









AngularM

3,9751853100




3,9751853100












  • You need to use something like Angular Universal to render the page for you.
    – codebreach
    Dec 14 '18 at 13:15


















  • You need to use something like Angular Universal to render the page for you.
    – codebreach
    Dec 14 '18 at 13:15
















You need to use something like Angular Universal to render the page for you.
– codebreach
Dec 14 '18 at 13:15




You need to use something like Angular Universal to render the page for you.
– codebreach
Dec 14 '18 at 13:15












1 Answer
1






active

oldest

votes


















0














I'd recommend looking into server side rendering for serving the initial load of your angular app. That way google will always get the final load of your page as it will be rendered on the server before they get it.



The difficulty in setting it up really depends on what your backend stack is, and how complex your web app is.






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53377671%2fi-want-my-angular-6-app-to-work-with-google-jobs-but-cannot-format-correctly%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I'd recommend looking into server side rendering for serving the initial load of your angular app. That way google will always get the final load of your page as it will be rendered on the server before they get it.



    The difficulty in setting it up really depends on what your backend stack is, and how complex your web app is.






    share|improve this answer


























      0














      I'd recommend looking into server side rendering for serving the initial load of your angular app. That way google will always get the final load of your page as it will be rendered on the server before they get it.



      The difficulty in setting it up really depends on what your backend stack is, and how complex your web app is.






      share|improve this answer
























        0












        0








        0






        I'd recommend looking into server side rendering for serving the initial load of your angular app. That way google will always get the final load of your page as it will be rendered on the server before they get it.



        The difficulty in setting it up really depends on what your backend stack is, and how complex your web app is.






        share|improve this answer












        I'd recommend looking into server side rendering for serving the initial load of your angular app. That way google will always get the final load of your page as it will be rendered on the server before they get it.



        The difficulty in setting it up really depends on what your backend stack is, and how complex your web app is.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 18 '18 at 3:46









        Tom Vinnicombe

        32




        32






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53377671%2fi-want-my-angular-6-app-to-work-with-google-jobs-but-cannot-format-correctly%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            MongoDB - Not Authorized To Execute Command

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

            Npm cannot find a required file even through it is in the searched directory