TeamMaestro / angular-native-seed

Build web apps and NativeScript applications from one codebase using the AngularCLI.
265 stars 71 forks source link

Sharing for reference; a few tips #81

Open ghost opened 6 years ago

ghost commented 6 years ago

https://github.com/megamindbrian/spotshot/

Sidenav container in Materials and Nativescript: https://github.com/megamindbrian/spotshot/tree/master/src/app/shared/container

Referencing an image in the assets directory from SCSS: https://github.com/megamindbrian/spotshot/blob/master/src/app/shared/container/container.component.tns.scss#L6

Added a menu service for keeping track of titles and if the sidenav is open: https://github.com/megamindbrian/spotshot/blob/master/src/app/menu/menu.service.ts

Ran into a weird issue where SCSS and CSS files are being generated in the same directory, I added it in the shared directory and SCSS files only link to it, 1 direction: https://github.com/megamindbrian/spotshot/blob/master/src/app/shared/colors.scss