This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MoviesService { | |
| static $inject = ['$http', 'auth']; | |
| movies = Promise.resolve([]); | |
| constructor( | |
| private $http: IHttpService, | |
| private auth: AuthService, | |
| ) {} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class AuthService { | |
| static $inject = ['$http']; | |
| private token: string; | |
| constructor($http: IHttpService) {} | |
| getToken() { | |
| if (_.isNil(this.token)) { | |
| this.token = $http.get('my-site.example.com/auth'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const moviesApp = angular.module('movies', []); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const actions = ()=>{ | |
| const functionA = ()=>{/*do sth*/} | |
| const functionB = ()=>{/*do sth*/} | |
| const functionC = ()=>{/*send log*/} | |
| return new Map([ | |
| [/^guest_[1-4]$/,functionA], | |
| [/^guest_5$/,functionB], | |
| [/^guest_.*$/,functionC], | |
| //... |
FROM node:12.7.0-alpine as node
RUN mkdir -p /usr/src/repo
ADD lerna.json /usr/src/repo/
ADD package.json \
yarn.lock \
.yarnrc \
/usr/src/repo/