Next lines solved the problem in the component :

 Math: any;

  
  constructor() {
    this.Math = Math;
  }


Le mardi 18 juillet 2017 10:27:58 UTC+2, Stéphane Ancelot a écrit :
>
> Hi,
> It looks like I need to declare something in order being able to use  Math 
> functions in a component html (cos, sin...) ?
>
>
>
> OutilsvgComponent.html:22 ERROR TypeError: Cannot read property 'cos' of 
> undefined at Object.eval [as updateRenderer] (OutilsvgComponent.html:23) 
> at Object.debugUpdateRenderer [as updateRenderer] (core.es5.js:13094) at 
> checkAndUpdateView (core.es5.js:12241) at callViewAction (
> core.es5.js:12601) at execComponentViewsAction (core.es5.js:12533) at 
> checkAndUpdateView (core.es5.js:12242) at callViewAction (
> core.es5.js:12601) at execComponentViewsAction (core.es5.js:12533) at 
> checkAndUpdateView (core.es5.js:12242) at callWithDebugContext (
> core.es5.js:13456)
>
> Regards,
> Steph
>

-- 
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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to