- On wireless network, go into sys prefs and get your machine's ip address.
- On the mobile device, connect to the same wireless network as your machine. Then go into wireless settings, turn http proxy to manual and enter the following: server: your laptop ip address port: 8888
- Charles should detect that the phone is trying to connect and you will have to allow it via the prompt from within the program.
- On phone, use fbs.forbes.com address with port 9000 and the url appendage to access the page.
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
| .declaration-order { | |
| /* Positioning */ | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| bottom: 0; | |
| left: 0; | |
| z-index: 100; | |
| /* Box-model */ |
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
| @Component({ | |
| selector: 'street-map', | |
| template: '<map-window></map-window><map-controls></map-controls>', | |
| }) | |
| // Component controller | |
| class StreetMap { | |
| ngOnInit() { | |
| // Properties are resolved and things like | |
| // this.mapWindow and this.mapControls | |
| // had a chance to resolve from the |
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 Library { | |
| books: LibraryBook[] = []; // books var is an empty array | |
| /* there is no constructor(), as there is nothing else to set besides books */ | |
| addBooks(...newBooks: LibraryBook[]) { // newBooks rest parameters takes an arbitrary number of arguments | |
| this.books.push(...newBooks); // which will then be appended to books | |
| } | |
| checkOut(book: LibraryBook) { | |
| book.available = false; | |
| } | |
| checkIn(book: LibraryBook) { |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |