Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    abdoul gadiri balde
    @moodiabdoul
    @Roku234 true
    Sai Vittal B
    @saivittalb
    Can anyone provide me base url for the backend integration?
    Jatin Katyal
    @jatinkatyal13
    Sai Vittal B
    @saivittalb
    Thanks 👍
    Ilya Maier
    @IlyaMaier
    Hi everyone!
    Saba Khukhunashvili
    @Khukhunashvili
    Hi :smile:
    Ilya Maier
    @IlyaMaier
    I've stuck with one task, and im tottaly new to angular/typescript
    i want to validate my form on clickin non submit button
    <div class="btn">
    <input type="button" onclick="function validateForm() { if(document.getElementById('company').value.length === 0 ||document.getElementById('title').value.length === 0 ||document.getElementById('name').value.length === 0 ||document.getElementById('description').value.length === 0 ||document.getElementById('photo').value.length === 0 ||document.getElementById('date').value.length === 0 ||document.getElementById('signature').value.length === 0) alert('Fill in all mandatory fields!') // just example, it'll be checked more exactly later } validateForm()" value="Publish">
    </div>
    here is my code
    i put it right in html file
    and now i can't move it into component.ts file
    'cause alert doesn't work at all
    and i can't get value from element
    can anybody help me?
    because it's nicely validated when i click on submit button
    but it doesn't work with second button
    i've read about 10 articles in internet but they don't work
    Aashutosh Rathi
    @aashutoshrathi
    Server people, pull changes before you commit :smile:
    There were few changes appended last night. Thanks
    Nikita Dhiman
    @nikitadhiman
    @IlyaMaier I mentioned a angular forms link, follow the tutorial step by step. You won't need to do so many things. Angular forms are quite powerful
    shaiksha5426
    @shaiksha5426
    hai9
    Ilya Maier
    @IlyaMaier
    hi
    Saba Khukhunashvili
    @Khukhunashvili
    Hello :smile:
    Aayushman Choudhary
    @crowded-geek
    yo
    Roku234
    @Roku234
    What’s up
    Bartek Pacia
    @bartekpacia
    yo
    Aayushman Choudhary
    @crowded-geek
    It's really sad that GCI is ending
    Bartek Pacia
    @bartekpacia
    I think we should stop crying now (at least until Tuesday)
    The time for crying will come;P
    Heck, lots of us are likely going to meet again in 2019:D
    Roku234
    @Roku234
    Yea
    Lint
    @radiantly

    The time for crying will come;P

    Stockpiling sad emojis

    Bartek Pacia
    @bartekpacia
    Guys this doesn't want to compile
    Invalid JSON character: "\"" at 29:13.
    Error: Invalid JSON character: "\"" at 29:13.
        at _token (C:\Users\Bartek\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\core\src\json\parser.js:81:19)
        at _readArray (C:\Users\Bartek\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\core\src\json\parser.js:409:9)
        at _readValue (C:\Users\Bartek\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\core\src\json\parser.js:671:22)
        at _readProperty (C:\Users\Bartek\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\core\src\json\parser.js:491:19)
        at _readObject (C:\Users\Bartek\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\core\src\json\parser.js:524:30)
        at _readValue (C:\Users\Bartek\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\core\src\json\parser.js:674:22)
        at _readProperty (C:\Users\Bartek\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\core\src\json\parser.js:491:19)
        at _readObject (C:\Users\Bartek\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\core\src\json\parser.js:524:30)
        at _readValue (C:\Users\Bartek\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\core\src\json\parser.js:674:22)
        at _readProperty (C:\Users\Bartek\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\core\src\json\parser.js:491:19)
    Aayushman Choudhary
    @crowded-geek
    Lemme help you
    Aayushman Choudhary
    @crowded-geek
    It'll solve the issue for you
    Bartek Pacia
    @bartekpacia
    Thanks
    Aayushman Choudhary
    @crowded-geek
    Anytime
    Bartek Pacia
    @bartekpacia
    This fix should be merged asap
    Aayushman Choudhary
    @crowded-geek
    ikr
    Bartek Pacia
    @bartekpacia
    Guys should I create a new component for validating certificate? https://codein.withgoogle.com/dashboard/task-instances/5728661895380992/
    Sai Vittal B
    @saivittalb
    No need @bartekpacia... you can continue by validating with your existing component!
    Aayushman Choudhary
    @crowded-geek
    Wait, yes he would need to first implement Generating certificates and then add validations to the form
    I'd suggest you to do this task first
    Bartek Pacia
    @bartekpacia
    Thanks again^^
    I've already claimed a task so need to do it
    Will try to create some kind of basic component with validation that redirects to template after clicking 'submit'
    Aayushman Choudhary
    @crowded-geek
    Yeah it should work ig
    Saba Khukhunashvili
    @Khukhunashvili
    Hello