Adarsh
Adarsh
KPCKevin Powell - Community
Created by Adarsh on 2/21/2024 in #front-end
How to create this animation using CSS
Thanks for spending your time to help me @Captain Chewie @Jochem
7 replies
KPCKevin Powell - Community
Created by Adarsh on 8/4/2023 in #front-end
How do I extend the content to full width
5 replies
KPCKevin Powell - Community
Created by Adarsh on 8/4/2023 in #front-end
How do I extend the content to full width
it works correctly
5 replies
KPCKevin Powell - Community
Created by Adarsh on 8/4/2023 in #front-end
How do I extend the content to full width
When it is in less than 750px width
5 replies
KPCKevin Powell - Community
Created by Adarsh on 2/11/2023 in #front-end
Not able to display data in local storage to form
Oh okay
22 replies
KPCKevin Powell - Community
Created by Adarsh on 2/11/2023 in #front-end
Not able to display data in local storage to form
@jochemm do you have any idea why I cant retrive the data?
22 replies
KPCKevin Powell - Community
Created by Adarsh on 2/11/2023 in #front-end
Not able to display data in local storage to form
Okay
22 replies
KPCKevin Powell - Community
Created by Adarsh on 2/11/2023 in #front-end
Not able to display data in local storage to form
22 replies
KPCKevin Powell - Community
Created by Adarsh on 2/11/2023 in #front-end
Not able to display data in local storage to form
22 replies
KPCKevin Powell - Community
Created by Adarsh on 2/11/2023 in #front-end
Not able to display data in local storage to form
@markboots.
22 replies
KPCKevin Powell - Community
Created by Adarsh on 2/11/2023 in #front-end
Not able to display data in local storage to form
I tried to add window before local storage
22 replies
KPCKevin Powell - Community
Created by Adarsh on 2/11/2023 in #front-end
Not able to display data in local storage to form
ngOnInit() {
this.createRegForm();

let draft = window.localStorage.getItem('step');
console.log(draft);
if (draft) {
this.formData.setValue(JSON.parse(draft));
}

this.formData.valueChanges
.pipe(filter(() => this.formData.valid))
.subscribe((val) =>
window.localStorage.setItem('step', JSON.stringify(val))
);
ngOnInit() {
this.createRegForm();

let draft = window.localStorage.getItem('step');
console.log(draft);
if (draft) {
this.formData.setValue(JSON.parse(draft));
}

this.formData.valueChanges
.pipe(filter(() => this.formData.valid))
.subscribe((val) =>
window.localStorage.setItem('step', JSON.stringify(val))
);
22 replies
KPCKevin Powell - Community
Created by Adarsh on 2/11/2023 in #front-end
Not able to display data in local storage to form
yeah the complete form data should be repopulated
22 replies
KPCKevin Powell - Community
Created by Adarsh on 2/11/2023 in #front-end
Not able to display data in local storage to form
yeah I did that but still not working @markboots.
22 replies
KPCKevin Powell - Community
Created by Adarsh on 2/11/2023 in #front-end
Not able to display data in local storage to form
@markboots. Yeah i can see the values in local storage
22 replies
KPCKevin Powell - Community
Created by Adarsh on 2/11/2023 in #front-end
Not able to display data in local storage to form
22 replies
KPCKevin Powell - Community
Created by Adarsh on 2/10/2023 in #front-end
Type 'ConnectionState' is not assignable to type 'boolean'
Yeah it did, thanks so much @jochemm
11 replies
KPCKevin Powell - Community
Created by Adarsh on 2/10/2023 in #front-end
Type 'ConnectionState' is not assignable to type 'boolean'
still I'm getting the same error
11 replies
KPCKevin Powell - Community
Created by Adarsh on 2/10/2023 in #front-end
Type 'ConnectionState' is not assignable to type 'boolean'
I've made it like this
11 replies
KPCKevin Powell - Community
Created by Adarsh on 2/10/2023 in #front-end
Type 'ConnectionState' is not assignable to type 'boolean'
import { Component } from '@angular/core';
import { ConnectionService, ConnectionState } from 'ng-connection-service';

@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent {
title = 'finalProject';
status = 'ONLINE'; //initializing as online by default
isConnected: boolean = true;

constructor(private connectionService: ConnectionService) {
this.connectionService.monitor().subscribe((isConnected) => {
this.isConnected = isConnected;
if (this.isConnected) {
this.status = 'ONLINE';
} else {
this.status = 'OFFLINE';
}
alert(this.status);
});
}
}
import { Component } from '@angular/core';
import { ConnectionService, ConnectionState } from 'ng-connection-service';

@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent {
title = 'finalProject';
status = 'ONLINE'; //initializing as online by default
isConnected: boolean = true;

constructor(private connectionService: ConnectionService) {
this.connectionService.monitor().subscribe((isConnected) => {
this.isConnected = isConnected;
if (this.isConnected) {
this.status = 'ONLINE';
} else {
this.status = 'OFFLINE';
}
alert(this.status);
});
}
}
11 replies