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
function question1() { | |
setTimeout( () => { | |
console.log('Hello'); | |
}); | |
console.log('World'); | |
// Output? | |
} | |
function question2() { |
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
angular. | |
module('phoneList'). | |
controller('phoneList', ['Phone', 'newService', | |
function(Phone, newService) { | |
this.phones = Phone.query(); | |
this.orderProp = 'age'; | |
this.searchText = newService.returnSearchText(); | |
} | |
] | |
); |
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
angular.module('phonecatApp', [ | |
'ngAnimate', | |
'ngRoute', | |
'core', | |
'phoneDetail', | |
'phoneList', | |
bundle(AppModule).name | |
]); |
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
import { NewComponent } from "./new-component"; | |
import { NewService } from "./new-service"; | |
import { NgModule } from "my-decorators/my-decorators"; | |
@NgModule({ | |
declarations: [NewComponent], | |
providers: [NewService], | |
imports: [] | |
}) | |
export class AppModule { |
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
import { NewService } from './new-service'; | |
import { Component, Input } from "../my-decorators/my-decorators"; | |
@Component({ | |
selector: 'new-component', | |
template: '<div>{{$ctrl.newMember}} - my input is: {{$ctrl.myInput}}</div>' | |
}) | |
export class NewComponent { | |
@Input() myInput; | |
newMember : string; |
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
import { Injectable } from "../my-decorators/my-decorators"; | |
@Injectable('newService') | |
export class NewService { | |
returnHelloWorld() : string { | |
return "New Component Here"; | |
} | |
returnSearchText() : string { |