ng add @angular-eslint/schematics
npm install prettier prettier-eslint eslint-config-prettier eslint-plugin-prettier --save-dev
Filename: .eslintrc.json
//// npm install --save roboto-fontface material-icons | |
//// put the below stuff into src/styles.scss | |
// for npm roboto-fontface package (to load local files) | |
$roboto-font-path: "~roboto-fontface/fonts" !default; | |
@import "~roboto-fontface/css/roboto/sass/roboto-fontface"; | |
// for npm material-icons package (to load local files) | |
$material-icons-font-path: '~material-icons/iconfont/'; |
app.factory('Authentication', function($http, $rootScope, $location, $timeout){ | |
var Auth = {}; | |
Auth.unsetUser = function() { | |
$rootScope.user = {}; | |
}; | |
Auth.setUser = function(data) { | |
$rootScope.user = data; |