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
export class FormUser { | |
constructor( | |
public name = '', | |
public email = '', | |
public age = 0 | |
) {} | |
get isAdult(): boolean { | |
return this.age >= 18; | |
} |
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 routes: Routes = [ | |
{ | |
path: 'x', | |
component: XComponent, | |
}, | |
{ | |
path: 'xpto', | |
component: WebComponentWapper, | |
data: { | |
remoteEntry: 'https://www.xxx.com:4000/remoteEntry.js', |
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
[ | |
{ | |
// SELECT smart | |
"key": "ctrl+w", | |
"command": "editor.action.smartSelect.expand", | |
"when": "editorTextFocus" | |
}, | |
{ | |
// UNSELECT smart | |
"key": "ctrl+shift+w", |
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
{ | |
"apc.electron": { | |
"titleBarStyle": "hiddenInset", | |
"trafficLightPosition": { | |
"x": 11, | |
"y": 10 | |
}, | |
"frame": false, | |
}, | |
"apc.header": { |
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
<?php | |
if ($_POST['btnSalvar']) | |
{ | |
try | |
{ | |
echo '<h1>btnSalvar Uhulllll!</h1>'; | |
} | |
catch (Exception $exception) | |
{ | |
echo $exception->getMessage(); |