public load(url: string = '') {
9 Haziran 2021 Çarşamba
Angular HttpClient error handling working code
28 Mayıs 2021 Cuma
Can't bind to 'ngIf' since it isn't a known property of 'div'
import { CommonModule } from '@angular/common';
import { BrowserModule } from '@angular/platform-browser';
@NgModule({
imports: [CommonModule],
declarations: [MyComponent]
...
})
class MyComponentModule {}
26 Mayıs 2021 Çarşamba
Angular nginx hosting
server {
listen 80;
server_name portal-vfabrika.sebittest.com;
location / {
root /home/server/apps/vfabrika-portal;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
22 Mart 2021 Pazartesi
Angular General Project Requirements
Multiple applications in same project.
Material or Bootstrap layouting support.
i18n multi-language support for static resources.
A well designed folder structure for components, services, etc.
Authentication/authorization support with oidc client.
Create empty project
ng new AppName --createApplication=false --directory=AppName --interactive=false
Add project
ng generate application ProjectName --style=scss --routing=true
6 Mart 2021 Cumartesi
Best Practices
10 Ağustos 2016 Çarşamba
24 Haziran 2016 Cuma
tsc.exe Duplicate Identifier ve Could not find name "promise" hatası
{
"exclude": [
"node_modules",
"typings/main",
"typings/main.d.ts" ],
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false }
}
typings.json{ "ambientDependencies": { "es6-shim": "github:DefinitelyTyped/DefinitelyTyped/ es6-shim/es6-shim.d.ts#6697d6f7dadbf5773cb40ecda35a76027e0783b2" },"globalDependencies": { "es6-shim": "registry:dt/es6-shim#0.31.2+20160602141504", "jquery": "registry:dt/jquery#1.10.0+20160620094458", "require": "registry:dt/require#2.1.20+20160316155526" } }typings klasörünü siliptypings install çakıyoruz...ardındantypings install dt~es6-shim --save --globalvetsc çakınca sorunsuz yine komut satırına dönmesi gerekiyor...