i’m writing my first app based on ionic and friends.
I started to generate an application based on sidemenu template.
Then i added a new controller function in which i used the ‘device’ object.
Then I run ‘ionic serve’.
When the page is refreshed I always receive an error: device not defined.
My guess is to use the ‘cordova-plugin-device’ object I found in the project plugin list.
What I’m missing?
I see the ‘console’ object (some console.log(…) calls) used without any particular directives …