This file contains 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
for(var i = 0;i < 10;i++){ | |
$.ajax({ | |
url: /* url goes here */, | |
success: function (moduleHtml) { | |
console.log(i); | |
} | |
}); | |
} |
This file contains 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 MyClass(){ | |
function privateMember(){ | |
} | |
function publicMember(){ | |
privateMember.apply(this); | |
} | |
this.publicMember = publicMember; | |
} |
This file contains 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 add(a,b){ | |
return a + b; | |
} | |
var newFoo = add.bind(this,3,4); | |
console.log(newFoo()); |
This file contains 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 strict"; | |
describe('First test',()=>{ | |
beforeEach(()=>{ | |
browser.url('https://www.google.com'); | |
}); | |
it('should display "Google" in the title',()=>{ | |
expect(browser.getTitle()).toBe('Google'); | |
}); | |
}); |
This file contains 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
Object.defineProperty(XMLHttpRequest.prototype, 'onreadystatechange', { | |
enumerable: true, | |
configurable: true, | |
get: function() { | |
return this.orsc; | |
}, | |
set: function(f) { | |
this.orsc = f; | |
} | |
}); |
This file contains 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
this.form.patchValue({ | |
name: contact.name, | |
sex:contact.sex, | |
dob:contact.dob.toLocaleDateString() | |
}); |
This file contains 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
<ng-template #dynamicInsert></ng-template> |
This file contains 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
// standard imports omitted for clarity | |
import {AppStores} from './app.stores'; | |
import { AppComponent } from './app.component'; | |
@NgModule({ | |
declarations: [ | |
AppComponent | |
], | |
imports: [ |
This file contains 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
app/ | |
+-store/ | |
+-route1/ | |
+-sub-reducer1/ | |
--sub-reducer1.actions.ts | |
--sub-reducer1.effects.ts | |
--sub-reducer1.model.ts | |
--sub-reducer1.reducer.ts | |
+-sub-reducer2/ | |
--route1.actions.ts |
This file contains 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 testScheduler = new TestScheduler(); | |
const hotObservable = testScheduler.createHotObservable(hotMarbleString); | |
const coldObservable = testScheduler.createColdObservable(coldMarbleString); |
OlderNewer