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 will find all files ending with .spec.js and run them with Mocha. Put this in your package.json | |
// The quotes around test/**/*.spec.js are required | |
{ | |
"scripts": { | |
"test": "mocha 'test/**/*.spec.js'" | |
} | |
} | |
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
import { Component, Input } from '@angular/core'; | |
@Component({ | |
selector: 'example', | |
template: `{{data}}` // getting `data` in the template will call the getter method! | |
}) | |
export class ExampleCoponent { | |
private dataInternal: number; | |
@Input() set data(data: number) { |
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
[alias] | |
psu = !git push -u origin $(git rev-parse --abbrev-ref HEAD) |
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
@Component({ | |
selector: 'example-component' | |
}) | |
export class ExampleComponent { | |
@Input() set myInput(newValue: string) { | |
// now you can do stuff here whenever the input is changed! | |
} | |
} |
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
RAISERROR('your message here',16,1) |