Not finding the solution anywhere else...

I need to define a variable in my index.html file and use it in my 
angular4/typescript code and I get a compile error.

my compile error is:

    Error:(109, 27) TS2339: Property 'standalone' does not exist on type 
'Window'.

the variable definition in HTML is:
    <script>
        var standalone = 'true';

        System.import('app').catch(function (err) {
            console.error(err);
        });
    </script>

the typescript code is:

    if(window.standalone !== undefined) {
        console.log('standalone');
    }

Anyone sees what I am doing wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to